Flying type pokemon can take ground type moves damage if grounded

This commit is contained in:
DizzyEggg 2018-07-31 23:21:42 +02:00
parent b73075f822
commit 0f29610a61

View File

@ -5380,6 +5380,8 @@ static inline void MulByTypeEffectiveness(u16 *modifier, u16 move, u8 moveType,
mod = UQ_4_12(1.0);
if (move == MOVE_FREEZE_DRY && defType == TYPE_WATER)
mod = UQ_4_12(2.0);
if (moveType == TYPE_GROUND && defType == TYPE_FLYING && IsBattlerGrounded(battlerDef))
mod = UQ_4_12(1.0);
MulModifier(modifier, mod);
}