From f343136c1cccc7bf015eb06bcb45d70d29cd51a4 Mon Sep 17 00:00:00 2001 From: Marty-D Date: Sun, 13 Sep 2020 11:01:10 -0400 Subject: [PATCH] Fix build --- src/battle.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/battle.ts b/src/battle.ts index e021b5019..dc45db3fe 100644 --- a/src/battle.ts +++ b/src/battle.ts @@ -475,7 +475,7 @@ class Pokemon implements PokemonDetails, PokemonHealth { } else { types = this.getSpecies(serverPokemon).types; } - if (this.hasTurnstatus('roost') && types.includes('Flying')) { + if (this.hasTurnstatus('roost' as ID) && types.includes('Flying')) { types = types.filter(typeName => typeName !== 'Flying'); if (!types.length) types = ['Normal']; }