diff options
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 |