summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authormalufett <malufett.eat.my.binaries@gmail.com>2013-08-30 00:57:14 +0800
committermalufett <malufett.eat.my.binaries@gmail.com>2013-08-30 00:57:14 +0800
commitc11390cbffc983b01ac9ee4af3b16ccb533dd94c (patch)
tree826ba089e2b23d4a584ff6c8ad5140361bc6ea57 /src/map/battle.c
parent1ba8caf3b72da0501b3d3eb72294a3f25bdd31ed (diff)
downloadhercules-c11390cbffc983b01ac9ee4af3b16ccb533dd94c.tar.gz
hercules-c11390cbffc983b01ac9ee4af3b16ccb533dd94c.tar.bz2
hercules-c11390cbffc983b01ac9ee4af3b16ccb533dd94c.tar.xz
hercules-c11390cbffc983b01ac9ee4af3b16ccb533dd94c.zip
Follow up @ cccc5bc9256b196b1f4e9ad881838ad32c8b3424
-Bonus 'bLongAtkRate' is not working properly. RE Updates -Added missing atk bonus of BS_HILTBINDING and removed unnecessary hit bonus of BS_WEAPONRESEARCH. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 45fa87bc6..355065a61 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -807,6 +807,8 @@ int64 battle_calc_masteryfix(struct block_list *src, struct block_list *target,
damage += div * sd->spiritball * 3;
if( skill_id != CR_SHIELDBOOMERANG ) // Only Shield boomerang doesn't takes the Star Crumbs bonus.
damage += div * (left ? sd->left_weapon.star : sd->right_weapon.star);
+ if( skill_id != MC_CARTREVOLUTION && (skill=pc->checkskill(sd,BS_HILTBINDING)) > 0 )
+ damage += 4;
if(sd->status.party_id && (skill=pc->checkskill(sd,TK_POWER)) > 0){
if( (i = party_foreachsamemap(party->sub_count, sd, 0)) > 1 )
@@ -1084,7 +1086,7 @@ int64 battle_calc_cardfix(int attack_type, struct block_list *src, struct block_
}
}
#ifndef RENEWAL
- if( wflag&BF_LONG )
+ if( wd.flag&BF_LONG )
cardfix = cardfix * (100 + sd->bonus.long_attack_atk_rate) / 100;
#endif
if( (cflag&1) && cardfix_ != 1000 )