summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/emap/init.c1
-rw-r--r--src/emap/pc.c6
-rw-r--r--src/emap/pc.h2
3 files changed, 9 insertions, 0 deletions
diff --git a/src/emap/init.c b/src/emap/init.c
index 9e424c7..f1ff8ff 100644
--- a/src/emap/init.c
+++ b/src/emap/init.c
@@ -238,6 +238,7 @@ HPExport void plugin_init (void)
addHookPre(pc, calc_skilltree_bonus, epc_calc_skilltree_bonus_pre);
addHookPre(pc, checkbaselevelup_sc, epc_checkbaselevelup_sc_pre);
addHookPre(pc, resetskill_job, epc_resetskill_job_pre);
+ addHookPre(pc, isDeathPenaltyJob, epc_isDeathPenaltyJob_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 c7f1eed..eb06237 100644
--- a/src/emap/pc.c
+++ b/src/emap/pc.c
@@ -1061,3 +1061,9 @@ bool epc_resetskill_job_pre(struct map_session_data** sdPtr __attribute__ ((unus
hookStop();
return false;
}
+
+bool epc_isDeathPenaltyJob_pre(uint16 *jobPtr __attribute__ ((unused)))
+{
+ hookStop();
+ return true;
+}
diff --git a/src/emap/pc.h b/src/emap/pc.h
index f031ed8..6f4d144 100644
--- a/src/emap/pc.h
+++ b/src/emap/pc.h
@@ -139,4 +139,6 @@ void epc_checkbaselevelup_sc_pre(struct map_session_data **sdPtr);
bool epc_resetskill_job_pre(struct map_session_data** sdPtr,
int *indexPtr);
+bool epc_isDeathPenaltyJob_pre(uint16 *jobPtr);
+
#endif // EVOL_MAP_PC