From 0f29610a61a6af9b8fc5fae849231b61619b7dfb Mon Sep 17 00:00:00 2001 From: DizzyEggg Date: Tue, 31 Jul 2018 23:21:42 +0200 Subject: [PATCH] Flying type pokemon can take ground type moves damage if grounded --- src/battle_util.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/battle_util.c b/src/battle_util.c index d6ddc04457..77923db9dd 100644 --- a/src/battle_util.c +++ b/src/battle_util.c @@ -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); }