summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHercules.ws <Hercules@efficiently.awesome>2013-10-18 18:48:10 +0200
committerHerculesWSAPI <Hercules@efficiently.awesome>2013-10-18 18:48:10 +0200
commitee91838e04388dc9edbe40d4d4dc020581757dfe (patch)
treebf9a5254e036e5dacb35a0d0c20b6e47b5eecb7b
parent9de926c247a89e0d5d338e26f178aef443b4066d (diff)
downloadhercules-ee91838e04388dc9edbe40d4d4dc020581757dfe.tar.gz
hercules-ee91838e04388dc9edbe40d4d4dc020581757dfe.tar.bz2
hercules-ee91838e04388dc9edbe40d4d4dc020581757dfe.tar.xz
hercules-ee91838e04388dc9edbe40d4d4dc020581757dfe.zip
HPM Hooks Update
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
-rw-r--r--src/plugins/HPMHooking/HPMHooking.HPMHooksCore.inc4
-rw-r--r--src/plugins/HPMHooking/HPMHooking.HookingPoints.inc1
-rw-r--r--src/plugins/HPMHooking/HPMHooking.Hooks.inc26
3 files changed, 31 insertions, 0 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking.HPMHooksCore.inc b/src/plugins/HPMHooking/HPMHooking.HPMHooksCore.inc
index d26779ccb..03534821e 100644
--- a/src/plugins/HPMHooking/HPMHooking.HPMHooksCore.inc
+++ b/src/plugins/HPMHooking/HPMHooking.HPMHooksCore.inc
@@ -4511,6 +4511,8 @@ struct {
struct HPMHookPoint *HP_skill_maelstrom_suction_post;
struct HPMHookPoint *HP_skill_get_new_group_id_pre;
struct HPMHookPoint *HP_skill_get_new_group_id_post;
+ struct HPMHookPoint *HP_skill_check_shadowform_pre;
+ struct HPMHookPoint *HP_skill_check_shadowform_post;
struct HPMHookPoint *HP_status_init_pre;
struct HPMHookPoint *HP_status_init_post;
struct HPMHookPoint *HP_status_final_pre;
@@ -9388,6 +9390,8 @@ struct {
int HP_skill_maelstrom_suction_post;
int HP_skill_get_new_group_id_pre;
int HP_skill_get_new_group_id_post;
+ int HP_skill_check_shadowform_pre;
+ int HP_skill_check_shadowform_post;
int HP_status_init_pre;
int HP_status_init_post;
int HP_status_final_pre;
diff --git a/src/plugins/HPMHooking/HPMHooking.HookingPoints.inc b/src/plugins/HPMHooking/HPMHooking.HookingPoints.inc
index 7f7d9d40d..dcd283641 100644
--- a/src/plugins/HPMHooking/HPMHooking.HookingPoints.inc
+++ b/src/plugins/HPMHooking/HPMHooking.HookingPoints.inc
@@ -2290,6 +2290,7 @@ struct HookingPointData HookingPoints[] = {
{ HP_POP(skill->cooldown_save, HP_skill_cooldown_save) },
{ HP_POP(skill->maelstrom_suction, HP_skill_maelstrom_suction) },
{ HP_POP(skill->get_new_group_id, HP_skill_get_new_group_id) },
+ { HP_POP(skill->check_shadowform, HP_skill_check_shadowform) },
/* status */
{ HP_POP(status->init, HP_status_init) },
{ HP_POP(status->final, HP_status_final) },
diff --git a/src/plugins/HPMHooking/HPMHooking.Hooks.inc b/src/plugins/HPMHooking/HPMHooking.Hooks.inc
index 8823eedae..3d045ece6 100644
--- a/src/plugins/HPMHooking/HPMHooking.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking.Hooks.inc
@@ -58454,6 +58454,32 @@ int HP_skill_get_new_group_id(void) {
}
return retVal___;
}
+bool HP_skill_check_shadowform(struct block_list *bl, int64 damage, int hit) {
+ int hIndex = 0;
+ bool retVal___ = false;
+ if( HPMHooks.count.HP_skill_check_shadowform_pre ) {
+ bool (*preHookFunc) (struct block_list *bl, int64 *damage, int *hit);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_shadowform_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_skill_check_shadowform_pre[hIndex].func;
+ retVal___ = preHookFunc(bl, &damage, &hit);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.skill.check_shadowform(bl, damage, hit);
+ }
+ if( HPMHooks.count.HP_skill_check_shadowform_post ) {
+ bool (*postHookFunc) (bool retVal___, struct block_list *bl, int64 *damage, int *hit);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_shadowform_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_skill_check_shadowform_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, bl, &damage, &hit);
+ }
+ }
+ return retVal___;
+}
/* status */
int HP_status_init(void) {
int hIndex = 0;