diff options
author | Haru <haru@dotalux.com> | 2019-04-07 23:45:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-07 23:45:51 +0200 |
commit | a3a1e366f479a80d983a0c476c4cdc6ad3643a03 (patch) | |
tree | c0e5ba9127f858449bae19846f518df9ad9658d0 /src/plugins/HPMHooking/HPMHooking_map.Hooks.inc | |
parent | f89a6da63a50cefa8251d1a84f40d85cf109bd4e (diff) | |
parent | f61b8dac943cf2c0e3a67659134c424d57064617 (diff) | |
download | hercules-a3a1e366f479a80d983a0c476c4cdc6ad3643a03.tar.gz hercules-a3a1e366f479a80d983a0c476c4cdc6ad3643a03.tar.bz2 hercules-a3a1e366f479a80d983a0c476c4cdc6ad3643a03.tar.xz hercules-a3a1e366f479a80d983a0c476c4cdc6ad3643a03.zip |
Merge pull request #2415 from AnnieRuru/76-showscript
Add optional parameter for *showscript to send target to SELF only
Diffstat (limited to 'src/plugins/HPMHooking/HPMHooking_map.Hooks.inc')
-rw-r--r-- | src/plugins/HPMHooking/HPMHooking_map.Hooks.inc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc index f5d45658e..26cf8ef00 100644 --- a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc +++ b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc @@ -15758,14 +15758,14 @@ void HP_clif_PMIgnoreList(struct map_session_data *sd) { } return; } -void HP_clif_ShowScript(struct block_list *bl, const char *message) { +void HP_clif_ShowScript(struct block_list *bl, const char *message, enum send_target target) { int hIndex = 0; if (HPMHooks.count.HP_clif_ShowScript_pre > 0) { - void (*preHookFunc) (struct block_list **bl, const char **message); + void (*preHookFunc) (struct block_list **bl, const char **message, enum send_target *target); *HPMforce_return = false; for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_ShowScript_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_clif_ShowScript_pre[hIndex].func; - preHookFunc(&bl, &message); + preHookFunc(&bl, &message, &target); } if (*HPMforce_return) { *HPMforce_return = false; @@ -15773,13 +15773,13 @@ void HP_clif_ShowScript(struct block_list *bl, const char *message) { } } { - HPMHooks.source.clif.ShowScript(bl, message); + HPMHooks.source.clif.ShowScript(bl, message, target); } if (HPMHooks.count.HP_clif_ShowScript_post > 0) { - void (*postHookFunc) (struct block_list *bl, const char *message); + void (*postHookFunc) (struct block_list *bl, const char *message, enum send_target target); for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_ShowScript_post; hIndex++) { postHookFunc = HPMHooks.list.HP_clif_ShowScript_post[hIndex].func; - postHookFunc(bl, message); + postHookFunc(bl, message, target); } } return; |