Revert "Made Thousand Arrows bypass type immunity"

This commit is contained in:
ExpoSeed 2021-04-07 15:03:11 -05:00 committed by GitHub
parent f8d3029537
commit 8a49d66622
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7871,11 +7871,7 @@ static u16 CalcTypeEffectivenessMultiplierInternal(u16 move, u8 moveType, u8 bat
if (moveType == TYPE_GROUND && !IsBattlerGrounded(battlerDef)) if (moveType == TYPE_GROUND && !IsBattlerGrounded(battlerDef))
{ {
if (move == MOVE_THOUSAND_ARROWS)
modifier = UQ_4_12(1.0);
else
modifier = UQ_4_12(0.0); modifier = UQ_4_12(0.0);
if (recordAbilities && GetBattlerAbility(battlerDef) == ABILITY_LEVITATE) if (recordAbilities && GetBattlerAbility(battlerDef) == ABILITY_LEVITATE)
{ {
gLastUsedAbility = ABILITY_LEVITATE; gLastUsedAbility = ABILITY_LEVITATE;