From 228f711bf6a9a60bb93a9fe9d3c716ef67c5b0da Mon Sep 17 00:00:00 2001 From: LOuroboros Date: Sun, 4 Apr 2021 07:38:38 -0300 Subject: [PATCH] Made Thousand Arrows bypass type immunity --- src/battle_util.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/battle_util.c b/src/battle_util.c index f1f5ffd100..8a9025007c 100644 --- a/src/battle_util.c +++ b/src/battle_util.c @@ -7872,7 +7872,11 @@ static u16 CalcTypeEffectivenessMultiplierInternal(u16 move, u8 moveType, u8 bat if (moveType == TYPE_GROUND && !IsBattlerGrounded(battlerDef)) { - modifier = UQ_4_12(0.0); + if (move == MOVE_THOUSAND_ARROWS) + modifier = UQ_4_12(1.0); + else + modifier = UQ_4_12(0.0); + if (recordAbilities && GetBattlerAbility(battlerDef) == ABILITY_LEVITATE) { gLastUsedAbility = ABILITY_LEVITATE;