Keen Eye evasion ignoring effect from Gen 6

This commit is contained in:
AmbientDinosaur 2021-04-02 19:25:07 +02:00 committed by GitHub
parent d270dee6bc
commit d310edda4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1510,7 +1510,7 @@ u32 GetTotalAccuracy(u32 battlerAtk, u32 battlerDef, u32 move)
accStage = gBattleMons[battlerAtk].statStages[STAT_ACC];
evasionStage = gBattleMons[battlerDef].statStages[STAT_EVASION];
if (atkAbility == ABILITY_UNAWARE)
if (atkAbility == ABILITY_UNAWARE || atkAbility == ABILITY_KEEN_EYE)
evasionStage = 6;
if (gBattleMoves[move].flags & FLAG_STAT_STAGES_IGNORED)
evasionStage = 6;