mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-05-27 19:23:11 -05:00
Fix build
This commit is contained in:
parent
ab508e7f81
commit
f343136c1c
|
|
@ -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'];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user