summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/HPMHooking/HPMHooking.HPMHooksCore.inc8
-rw-r--r--src/plugins/HPMHooking/HPMHooking.HookingPoints.inc2
-rw-r--r--src/plugins/HPMHooking/HPMHooking.Hooks.inc43
3 files changed, 26 insertions, 27 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking.HPMHooksCore.inc b/src/plugins/HPMHooking/HPMHooking.HPMHooksCore.inc
index e9727658f..de5b11b93 100644
--- a/src/plugins/HPMHooking/HPMHooking.HPMHooksCore.inc
+++ b/src/plugins/HPMHooking/HPMHooking.HPMHooksCore.inc
@@ -4953,8 +4953,8 @@ struct {
struct HPMHookPoint *HP_unit_walktobl_post;
struct HPMHookPoint *HP_unit_run_pre;
struct HPMHookPoint *HP_unit_run_post;
- struct HPMHookPoint *HP_unit_wugdash_pre;
- struct HPMHookPoint *HP_unit_wugdash_post;
+ struct HPMHookPoint *HP_unit_run_hit_pre;
+ struct HPMHookPoint *HP_unit_run_hit_post;
struct HPMHookPoint *HP_unit_escape_pre;
struct HPMHookPoint *HP_unit_escape_post;
struct HPMHookPoint *HP_unit_movepos_pre;
@@ -9988,8 +9988,8 @@ struct {
int HP_unit_walktobl_post;
int HP_unit_run_pre;
int HP_unit_run_post;
- int HP_unit_wugdash_pre;
- int HP_unit_wugdash_post;
+ int HP_unit_run_hit_pre;
+ int HP_unit_run_hit_post;
int HP_unit_escape_pre;
int HP_unit_escape_post;
int HP_unit_movepos_pre;
diff --git a/src/plugins/HPMHooking/HPMHooking.HookingPoints.inc b/src/plugins/HPMHooking/HPMHooking.HookingPoints.inc
index 387d91e24..2a6761170 100644
--- a/src/plugins/HPMHooking/HPMHooking.HookingPoints.inc
+++ b/src/plugins/HPMHooking/HPMHooking.HookingPoints.inc
@@ -2516,7 +2516,7 @@ struct HookingPointData HookingPoints[] = {
{ HP_POP(unit->walktobl_sub, HP_unit_walktobl_sub) },
{ HP_POP(unit->walktobl, HP_unit_walktobl) },
{ HP_POP(unit->run, HP_unit_run) },
- { HP_POP(unit->wugdash, HP_unit_wugdash) },
+ { HP_POP(unit->run_hit, HP_unit_run_hit) },
{ HP_POP(unit->escape, HP_unit_escape) },
{ HP_POP(unit->movepos, HP_unit_movepos) },
{ HP_POP(unit->setdir, HP_unit_setdir) },
diff --git a/src/plugins/HPMHooking/HPMHooking.Hooks.inc b/src/plugins/HPMHooking/HPMHooking.Hooks.inc
index 96b9718dc..78139fb61 100644
--- a/src/plugins/HPMHooking/HPMHooking.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking.Hooks.inc
@@ -66624,15 +66624,15 @@ int HP_unit_walktobl(struct block_list *bl, struct block_list *tbl, int range, i
}
return retVal___;
}
-int HP_unit_run(struct block_list *bl) {
+bool HP_unit_run(struct block_list *bl, struct map_session_data *sd, enum sc_type type) {
int hIndex = 0;
- int retVal___ = 0;
+ bool retVal___ = false;
if( HPMHooks.count.HP_unit_run_pre ) {
- int (*preHookFunc) (struct block_list *bl);
+ bool (*preHookFunc) (struct block_list *bl, struct map_session_data *sd, enum sc_type *type);
*HPMforce_return = false;
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_run_pre; hIndex++ ) {
preHookFunc = HPMHooks.list.HP_unit_run_pre[hIndex].func;
- retVal___ = preHookFunc(bl);
+ retVal___ = preHookFunc(bl, sd, &type);
}
if( *HPMforce_return ) {
*HPMforce_return = false;
@@ -66640,43 +66640,42 @@ int HP_unit_run(struct block_list *bl) {
}
}
{
- retVal___ = HPMHooks.source.unit.run(bl);
+ retVal___ = HPMHooks.source.unit.run(bl, sd, type);
}
if( HPMHooks.count.HP_unit_run_post ) {
- int (*postHookFunc) (int retVal___, struct block_list *bl);
+ bool (*postHookFunc) (bool retVal___, struct block_list *bl, struct map_session_data *sd, enum sc_type *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_run_post; hIndex++ ) {
postHookFunc = HPMHooks.list.HP_unit_run_post[hIndex].func;
- retVal___ = postHookFunc(retVal___, bl);
+ retVal___ = postHookFunc(retVal___, bl, sd, &type);
}
}
return retVal___;
}
-int HP_unit_wugdash(struct block_list *bl, struct map_session_data *sd) {
+void HP_unit_run_hit(struct block_list *bl, struct status_change *sc, struct map_session_data *sd, enum sc_type type) {
int hIndex = 0;
- int retVal___ = 0;
- if( HPMHooks.count.HP_unit_wugdash_pre ) {
- int (*preHookFunc) (struct block_list *bl, struct map_session_data *sd);
+ if( HPMHooks.count.HP_unit_run_hit_pre ) {
+ void (*preHookFunc) (struct block_list *bl, struct status_change *sc, struct map_session_data *sd, enum sc_type *type);
*HPMforce_return = false;
- for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_wugdash_pre; hIndex++ ) {
- preHookFunc = HPMHooks.list.HP_unit_wugdash_pre[hIndex].func;
- retVal___ = preHookFunc(bl, sd);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_run_hit_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_unit_run_hit_pre[hIndex].func;
+ preHookFunc(bl, sc, sd, &type);
}
if( *HPMforce_return ) {
*HPMforce_return = false;
- return retVal___;
+ return;
}
}
{
- retVal___ = HPMHooks.source.unit.wugdash(bl, sd);
+ HPMHooks.source.unit.run_hit(bl, sc, sd, type);
}
- if( HPMHooks.count.HP_unit_wugdash_post ) {
- int (*postHookFunc) (int retVal___, struct block_list *bl, struct map_session_data *sd);
- for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_wugdash_post; hIndex++ ) {
- postHookFunc = HPMHooks.list.HP_unit_wugdash_post[hIndex].func;
- retVal___ = postHookFunc(retVal___, bl, sd);
+ if( HPMHooks.count.HP_unit_run_hit_post ) {
+ void (*postHookFunc) (struct block_list *bl, struct status_change *sc, struct map_session_data *sd, enum sc_type *type);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_run_hit_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_unit_run_hit_post[hIndex].func;
+ postHookFunc(bl, sc, sd, &type);
}
}
- return retVal___;
+ return;
}
int HP_unit_escape(struct block_list *bl, struct block_list *target, short dist) {
int hIndex = 0;