diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-04-02 22:30:10 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-04-02 22:30:10 +0300 |
commit | 9bc41f3285ebd0c83243b2f207ff6d6b08ddf5f6 (patch) | |
tree | 739985dbb4bf561eb1a3e7e25ab8dfe2eba30531 /src/map | |
parent | 402cbb4310059bc37ffc2825b83a1659200bf12c (diff) | |
download | evol-hercules-9bc41f3285ebd0c83243b2f207ff6d6b08ddf5f6.tar.gz evol-hercules-9bc41f3285ebd0c83243b2f207ff6d6b08ddf5f6.tar.bz2 evol-hercules-9bc41f3285ebd0c83243b2f207ff6d6b08ddf5f6.tar.xz evol-hercules-9bc41f3285ebd0c83243b2f207ff6d6b08ddf5f6.zip |
map: check required item attributes also on use item.
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/init.c | 3 | ||||
-rw-r--r-- | src/map/pc.c | 2 | ||||
-rw-r--r-- | src/map/pc.h | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/src/map/init.c b/src/map/init.c index 4ea0622..ffb6033 100644 --- a/src/map/init.c +++ b/src/map/init.c @@ -156,7 +156,8 @@ HPExport void plugin_init (void) addHookPost("clif->move", eclif_move); addHookPost("map->addflooritem", emap_addflooritem_post); addHookPost("skill->check_condition_castend", eskill_check_condition_castend_post); - addHookPost("pc->isequip", epc_isequip_post); + addHookPost("pc->isequip", epc_isuseequip_post); + addHookPost("pc->isUseitem", epc_isuseequip_post); langScriptId = script->add_str("Lang"); } diff --git a/src/map/pc.c b/src/map/pc.c index d51cc2a..5b36576 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -188,7 +188,7 @@ void epc_validate_levels(void) hookStop(); } -int epc_isequip_post(int retVal, struct map_session_data *sd, int *nPtr) +int epc_isuseequip_post(int retVal, struct map_session_data *sd, int *nPtr) { const int n = *nPtr; if (retVal) diff --git a/src/map/pc.h b/src/map/pc.h index dd6572c..9c81392 100644 --- a/src/map/pc.h +++ b/src/map/pc.h @@ -23,6 +23,6 @@ int epc_takeitem(TBL_PC *sd, TBL_ITEM *fitem); void epc_validate_levels(void); -int epc_isequip_post(int retVal, struct map_session_data *sd, int *nPtr); +int epc_isuseequip_post(int retVal, struct map_session_data *sd, int *nPtr); #endif // EVOL_MAP_PC |