summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorpanikon <panikon@zoho.com>2014-06-18 16:18:48 -0300
committerpanikon <panikon@zoho.com>2014-06-18 16:18:48 -0300
commit6ae0d5bb8baca91a782c37ee2cefa61a886eaf0a (patch)
treed6b9cf875561f10149ac63f5258c3c3eaa21ff25 /src/plugins
parent26a18851b346064f626697680b99f065ac408bb4 (diff)
parentfb2fc548cab17a504fc59d0d622814783f08c92e (diff)
downloadhercules-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')
-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 9c877c56a..e9727658f 100644
--- a/src/plugins/HPMHooking/HPMHooking.HPMHooksCore.inc
+++ b/src/plugins/HPMHooking/HPMHooking.HPMHooksCore.inc
@@ -4799,6 +4799,8 @@ struct {
struct HPMHookPoint *HP_status_get_total_def_post;
struct HPMHookPoint *HP_status_get_matk_pre;
struct HPMHookPoint *HP_status_get_matk_post;
+ struct HPMHookPoint *HP_status_update_matk_pre;
+ struct HPMHookPoint *HP_status_update_matk_post;
struct HPMHookPoint *HP_status_readdb_pre;
struct HPMHookPoint *HP_status_readdb_post;
struct HPMHookPoint *HP_status_initChangeTables_pre;
@@ -9832,6 +9834,8 @@ struct {
int HP_status_get_total_def_post;
int HP_status_get_matk_pre;
int HP_status_get_matk_post;
+ int HP_status_update_matk_pre;
+ int HP_status_update_matk_post;
int HP_status_readdb_pre;
int HP_status_readdb_post;
int HP_status_initChangeTables_pre;
diff --git a/src/plugins/HPMHooking/HPMHooking.HookingPoints.inc b/src/plugins/HPMHooking/HPMHooking.HookingPoints.inc
index 603752447..387d91e24 100644
--- a/src/plugins/HPMHooking/HPMHooking.HookingPoints.inc
+++ b/src/plugins/HPMHooking/HPMHooking.HookingPoints.inc
@@ -2436,6 +2436,7 @@ struct HookingPointData HookingPoints[] = {
{ HP_POP(status->get_total_mdef, HP_status_get_total_mdef) },
{ HP_POP(status->get_total_def, HP_status_get_total_def) },
{ HP_POP(status->get_matk, HP_status_get_matk) },
+ { HP_POP(status->update_matk, HP_status_update_matk) },
{ HP_POP(status->readdb, HP_status_readdb) },
{ HP_POP(status->initChangeTables, HP_status_initChangeTables) },
{ HP_POP(status->initDummyData, HP_status_initDummyData) },
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;