summaryrefslogtreecommitdiff
path: root/src/map/pc.h
diff options
context:
space:
mode:
authorEmistry Haoyan <equinox1991@gmail.com>2019-07-30 01:27:16 +0800
committerEmistry Haoyan <equinox1991@gmail.com>2019-08-05 21:26:15 +0800
commit00aa0bc9b0c8dce90a5cb682838c09439fdbdd84 (patch)
tree9381a5c92e3ec4345185c904eb21e363b13be8c2 /src/map/pc.h
parent0edf2360b185f0e1c68bb6ddbbbe3720af5651b3 (diff)
downloadhercules-00aa0bc9b0c8dce90a5cb682838c09439fdbdd84.tar.gz
hercules-00aa0bc9b0c8dce90a5cb682838c09439fdbdd84.tar.bz2
hercules-00aa0bc9b0c8dce90a5cb682838c09439fdbdd84.tar.xz
hercules-00aa0bc9b0c8dce90a5cb682838c09439fdbdd84.zip
Fix equipment auto bonus
- fix auto bonus doesn't trigger for costume/shadow gears, due to `pos` always `0`. - fixes #1355
Diffstat (limited to 'src/map/pc.h')
-rw-r--r--src/map/pc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/pc.h b/src/map/pc.h
index 7c89f7f32..111356ba1 100644
--- a/src/map/pc.h
+++ b/src/map/pc.h
@@ -963,7 +963,7 @@ END_ZEROED_BLOCK; /* End */
int (*updateweightstatus) (struct map_session_data *sd);
- int (*addautobonus) (struct s_autobonus *bonus,char max,const char *bonus_script,short rate,unsigned int dur,short atk_type,const char *o_script,unsigned short pos,bool onskill);
+ int (*addautobonus) (struct s_autobonus *bonus,char max,const char *bonus_script,short rate,unsigned int dur,short atk_type,const char *o_script,unsigned int pos,bool onskill);
int (*exeautobonus) (struct map_session_data* sd,struct s_autobonus *bonus);
int (*endautobonus) (int tid, int64 tick, int id, intptr_t data);
int (*delautobonus) (struct map_session_data* sd,struct s_autobonus *bonus,char max,bool restore);