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://svn.code.sf.net/p/rathena/svn/trunk@14248 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
Paradox924X 2010-02-19 12:51:40 +00:00
parent 3fd1d9ca2b
commit d9cfd5002b
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2010/02/19 2010/02/19
* 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'. [Paradox924X]
* Fixed NPC_INVINCIBLE can be dispelled. (bugreport:4046) [Inkfish] * Fixed NPC_INVINCIBLE can be dispelled. (bugreport:4046) [Inkfish]
* Fixed a compliation warning. [Inkfish] * Fixed a compliation warning. [Inkfish]
2010/02/09 2010/02/09

View File

@ -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.addrace2[t_race2])/100;
cardfix_=cardfix_*(100+sd->left_weapon.addrace[is_boss(target)?RC_BOSS:RC_NONBOSS])/100; cardfix_=cardfix_*(100+sd->left_weapon.addrace[is_boss(target)?RC_BOSS:RC_NONBOSS])/100;
if( tstatus->race != RC_DEMIHUMAN ) 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 else