summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/emap/init.c1
-rw-r--r--src/emap/pc.c7
-rw-r--r--src/emap/pc.h3
3 files changed, 11 insertions, 0 deletions
diff --git a/src/emap/init.c b/src/emap/init.c
index 26a2d02..6ad2d72 100644
--- a/src/emap/init.c
+++ b/src/emap/init.c
@@ -235,6 +235,7 @@ HPExport void plugin_init (void)
addHookPre(pc, insert_card, epc_insert_card_pre);
addHookPre(pc, process_chat_message, epc_process_chat_message_pre);
addHookPre(pc, calc_skilltree_clear, epc_calc_skilltree_clear_pre);
+ addHookPre(pc, calc_skilltree_bonus, epc_calc_skilltree_bonus_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 ff9a49e..91d911f 100644
--- a/src/emap/pc.c
+++ b/src/emap/pc.c
@@ -1040,3 +1040,10 @@ void epc_calc_skilltree_clear_pre(struct map_session_data **sdPtr)
}
hookStop();
}
+
+// disable job based bonuses
+void epc_calc_skilltree_bonus_pre(struct map_session_data **sdPtr __attribute__ ((unused)),
+ int *classidxPtr __attribute__ ((unused)))
+{
+ hookStop();
+}
diff --git a/src/emap/pc.h b/src/emap/pc.h
index 8579d6f..29bc0b1 100644
--- a/src/emap/pc.h
+++ b/src/emap/pc.h
@@ -131,4 +131,7 @@ int epc_jobchange(struct map_session_data *sd,
void epc_calc_skilltree_clear_pre(struct map_session_data **sdPtr);
+void epc_calc_skilltree_bonus_pre(struct map_session_data **sdPtr,
+ int *classidxPtr);
+
#endif // EVOL_MAP_PC