diff options
author | shennetsind <ind@henn.et> | 2013-12-01 13:17:45 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-12-01 13:17:45 -0200 |
commit | e115c30bde414fc82a617645c7fadeabd04cf56f (patch) | |
tree | 7ac8ff845119d4d81d94a4e7d03654865b2e3bdc /src/map/pc.c | |
parent | 4e20f139fa7d0ebd6de30fde9b91ec5e235981d2 (diff) | |
download | hercules-e115c30bde414fc82a617645c7fadeabd04cf56f.tar.gz hercules-e115c30bde414fc82a617645c7fadeabd04cf56f.tar.bz2 hercules-e115c30bde414fc82a617645c7fadeabd04cf56f.tar.xz hercules-e115c30bde414fc82a617645c7fadeabd04cf56f.zip |
Fixed Bug 7866
Fixed EQI_SHADOW_ACC_L ability to produce bonuses, Special Thanks to rosfus, Angelmelody.
http://hercules.ws/board/tracker/issue-7866-eqi-shadow-acc-l-missing-effect/
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index feca11758..64fbd77f3 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -2002,8 +2002,8 @@ int pc_delautobonus(struct map_session_data* sd, struct s_autobonus *autobonus,c if( autobonus[i].bonus_script ) { int j; - ARR_FIND( 0, EQI_MAX-1, j, sd->equip_index[j] >= 0 && sd->status.inventory[sd->equip_index[j]].equip == autobonus[i].pos ); - if( j < EQI_MAX-1 ) + ARR_FIND( 0, EQI_MAX, j, sd->equip_index[j] >= 0 && sd->status.inventory[sd->equip_index[j]].equip == autobonus[i].pos ); + if( j < EQI_MAX ) script->run_autobonus(autobonus[i].bonus_script,sd->bl.id,sd->equip_index[j]); } continue; @@ -2033,8 +2033,8 @@ int pc_exeautobonus(struct map_session_data *sd,struct s_autobonus *autobonus) if( autobonus->other_script ) { int j; - ARR_FIND( 0, EQI_MAX-1, j, sd->equip_index[j] >= 0 && sd->status.inventory[sd->equip_index[j]].equip == autobonus->pos ); - if( j < EQI_MAX-1 ) + ARR_FIND( 0, EQI_MAX, j, sd->equip_index[j] >= 0 && sd->status.inventory[sd->equip_index[j]].equip == autobonus->pos ); + if( j < EQI_MAX ) script->run_autobonus(autobonus->other_script,sd->bl.id,sd->equip_index[j]); } |