summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-09-02 20:40:51 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-09-02 20:40:51 +0000
commit30953733770f10449ce32662369546e5ebd34449 (patch)
tree323ba460f3f6d50e037c843365d7b3979e5ff965 /src/map/battle.c
parent82c514c4d87e1cbf5a486e41bc09e2f31069f354 (diff)
downloadhercules-30953733770f10449ce32662369546e5ebd34449.tar.gz
hercules-30953733770f10449ce32662369546e5ebd34449.tar.bz2
hercules-30953733770f10449ce32662369546e5ebd34449.tar.xz
hercules-30953733770f10449ce32662369546e5ebd34449.zip
- Applied use of RC_BOSS/RC_NONBOSS in the ignore def code.
- Corrected SCB_LUK not updating SCB_BATK as well. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8598 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index e77a26e2e..fe693d1ec 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -1634,13 +1634,13 @@ static struct Damage battle_calc_weapon_attack(
{ //Elemental/Racial adjustments
if(sd->right_weapon.def_ratio_atk_ele & (1<<tstatus->def_ele) ||
sd->right_weapon.def_ratio_atk_race & (1<<tstatus->race) ||
- sd->right_weapon.def_ratio_atk_race & (is_boss(target)?1<<10:1<<11)
+ sd->right_weapon.def_ratio_atk_race & (1<<(is_boss(target)?RC_BOSS:RC_NONBOSS))
)
flag.pdef = 1;
if(sd->left_weapon.def_ratio_atk_ele & (1<<tstatus->def_ele) ||
sd->left_weapon.def_ratio_atk_race & (1<<tstatus->race) ||
- sd->left_weapon.def_ratio_atk_race & (is_boss(target)?1<<10:1<<11)
+ sd->left_weapon.def_ratio_atk_race & (1<<(is_boss(target)?RC_BOSS:RC_NONBOSS))
) { //Pass effect onto right hand if configured so. [Skotlex]
if (battle_config.left_cardfix_to_right && flag.rh)
flag.pdef = 1;