summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorParadox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-02-19 12:51:40 +0000
committerParadox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-02-19 12:51:40 +0000
commitc77869e7bf80ddec31cf48b77148c15d0ccaa48f (patch)
treedc67c64bf38263627e8300297a261fdf0cc3b8f8 /src/map/battle.c
parent267a456c643bca4185b56eb7cdd39bb2449bed90 (diff)
downloadhercules-c77869e7bf80ddec31cf48b77148c15d0ccaa48f.tar.gz
hercules-c77869e7bf80ddec31cf48b77148c15d0ccaa48f.tar.bz2
hercules-c77869e7bf80ddec31cf48b77148c15d0ccaa48f.tar.xz
hercules-c77869e7bf80ddec31cf48b77148c15d0ccaa48f.zip
Fixed racial bonuses for RC_NONDEMIHUMAN applying to right cardfix value (cardfix) instead of left cardfix value (cardfix_) in the case of melee attacks where left_cardfix_to_right is set to 'no'.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14248 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index d5c79eef2..a95e29079 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -1994,7 +1994,7 @@ static struct Damage battle_calc_weapon_attack(struct block_list *src,struct blo
cardfix_=cardfix_*(100+sd->left_weapon.addrace2[t_race2])/100;
cardfix_=cardfix_*(100+sd->left_weapon.addrace[is_boss(target)?RC_BOSS:RC_NONBOSS])/100;
if( tstatus->race != RC_DEMIHUMAN )
- cardfix=cardfix*(100+sd->left_weapon.addrace[RC_NONDEMIHUMAN])/100;
+ cardfix_=cardfix_*(100+sd->left_weapon.addrace[RC_NONDEMIHUMAN])/100;
}
}
else