Fix build

This commit is contained in:
Marty-D 2020-09-13 11:01:10 -04:00 committed by GitHub
parent ab508e7f81
commit f343136c1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'];
}