diff options
author | panikon <panikon@zoho.com> | 2014-06-18 16:18:48 -0300 |
---|---|---|
committer | panikon <panikon@zoho.com> | 2014-06-18 16:18:48 -0300 |
commit | 6ae0d5bb8baca91a782c37ee2cefa61a886eaf0a (patch) | |
tree | d6b9cf875561f10149ac63f5258c3c3eaa21ff25 /src/plugins/HPMHooking/HPMHooking.Hooks.inc | |
parent | 26a18851b346064f626697680b99f065ac408bb4 (diff) | |
parent | fb2fc548cab17a504fc59d0d622814783f08c92e (diff) | |
download | hercules-6ae0d5bb8baca91a782c37ee2cefa61a886eaf0a.tar.gz hercules-6ae0d5bb8baca91a782c37ee2cefa61a886eaf0a.tar.bz2 hercules-6ae0d5bb8baca91a782c37ee2cefa61a886eaf0a.tar.xz hercules-6ae0d5bb8baca91a782c37ee2cefa61a886eaf0a.zip |
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Diffstat (limited to 'src/plugins/HPMHooking/HPMHooking.Hooks.inc')
-rw-r--r-- | src/plugins/HPMHooking/HPMHooking.Hooks.inc | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking.Hooks.inc b/src/plugins/HPMHooking/HPMHooking.Hooks.inc index f5e4b5cb0..96b9718dc 100644 --- a/src/plugins/HPMHooking/HPMHooking.Hooks.inc +++ b/src/plugins/HPMHooking/HPMHooking.Hooks.inc @@ -64575,6 +64575,32 @@ int HP_status_get_matk(struct block_list *src, int flag) { } return retVal___; } +void HP_status_update_matk(struct block_list *bl) { + int hIndex = 0; + if( HPMHooks.count.HP_status_update_matk_pre ) { + void (*preHookFunc) (struct block_list *bl); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_status_update_matk_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_status_update_matk_pre[hIndex].func; + preHookFunc(bl); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.status.update_matk(bl); + } + if( HPMHooks.count.HP_status_update_matk_post ) { + void (*postHookFunc) (struct block_list *bl); + for(hIndex = 0; hIndex < HPMHooks.count.HP_status_update_matk_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_status_update_matk_post[hIndex].func; + postHookFunc(bl); + } + } + return; +} int HP_status_readdb(void) { int hIndex = 0; int retVal___ = 0; |