summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
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 f8f16c2b1..50bde0a58 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -2317,7 +2317,7 @@ struct Damage battle_calc_magic_attack(
sd->ignore_mdef_ele & (1<<tstatus->def_ele) ||
sd->ignore_mdef_race & (1<<tstatus->race) ||
sd->ignore_mdef_race & (is_boss(target)?1<<RC_BOSS:1<<RC_NONBOSS)
- ))
+ ))
flag.imdef = 1;
}
@@ -2348,8 +2348,8 @@ struct Damage battle_calc_magic_attack(
ad.damage=battle_attr_fix(src, target, ad.damage, s_ele, tstatus->def_ele, tstatus->ele_lv);
if (sd && flag.cardfix) {
- short cardfix=100;
short t_class = status_get_class(target);
+ short cardfix=100;
cardfix=cardfix*(100+sd->magic_addrace[tstatus->race])/100;
if (flag.elefix)