diff options
-rw-r--r-- | src/emap/init.c | 1 | ||||
-rw-r--r-- | src/emap/pc.c | 7 | ||||
-rw-r--r-- | src/emap/pc.h | 3 |
3 files changed, 11 insertions, 0 deletions
diff --git a/src/emap/init.c b/src/emap/init.c index f1ff8ff..dfd0f29 100644 --- a/src/emap/init.c +++ b/src/emap/init.c @@ -239,6 +239,7 @@ HPExport void plugin_init (void) addHookPre(pc, checkbaselevelup_sc, epc_checkbaselevelup_sc_pre); addHookPre(pc, resetskill_job, epc_resetskill_job_pre); addHookPre(pc, isDeathPenaltyJob, epc_isDeathPenaltyJob_pre); + addHookPre(pc, read_skill_job_skip, epc_read_skill_job_skip_pre); addHookPre(mob, deleteslave_sub, emob_deleteslave_sub_pre); addHookPre(mob, read_db_additional_fields, emob_read_db_additional_fields_pre); addHookPre(mob, dead, emob_dead_pre); diff --git a/src/emap/pc.c b/src/emap/pc.c index eb06237..5eca163 100644 --- a/src/emap/pc.c +++ b/src/emap/pc.c @@ -1067,3 +1067,10 @@ bool epc_isDeathPenaltyJob_pre(uint16 *jobPtr __attribute__ ((unused))) hookStop(); return true; } + +bool epc_read_skill_job_skip_pre(short *skill_idPtr __attribute__ ((unused)), + int *job_idPtr __attribute__ ((unused))) +{ + hookStop(); + return false; +} diff --git a/src/emap/pc.h b/src/emap/pc.h index 6f4d144..4d227b4 100644 --- a/src/emap/pc.h +++ b/src/emap/pc.h @@ -141,4 +141,7 @@ bool epc_resetskill_job_pre(struct map_session_data** sdPtr, bool epc_isDeathPenaltyJob_pre(uint16 *jobPtr); +bool epc_read_skill_job_skip_pre(short *skill_idPtr, + int *job_idPtr); + #endif // EVOL_MAP_PC |