summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
Diffstat (limited to 'src/map')
-rw-r--r--src/map/battle.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 13740edb7..ada30c949 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -2335,6 +2335,8 @@ struct Damage battle_calc_magic_attack(struct block_list *src,struct block_list
//mdef2-= mdef2* i/100;
}
}
+ if (skill_num == NPC_EARTHQUAKE)
+ mdef>>=1; //Halves MDEF (stupid overpowered skill)
if(battle_config.magic_defense_type)
ad.damage = ad.damage - mdef*battle_config.magic_defense_type - mdef2;
else