This commit is contained in:
VarishKongara 2026-05-08 13:38:20 -04:00 committed by GitHub
commit 199ba1392d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,7 +33,7 @@ export class ModifiableValue {
this.serverPokemon = serverPokemon;
this.itemName = this.battle.dex.items.get(serverPokemon.item).name;
const ability = serverPokemon.ability || pokemon?.ability || serverPokemon.baseAbility;
const ability = pokemon?.ability || serverPokemon.ability || serverPokemon.baseAbility;
this.abilityName = this.battle.dex.abilities.get(ability).name;
this.weatherName = this.battle.dex.moves.get(battle.weather).exists ?
this.battle.dex.moves.get(battle.weather).name : this.battle.dex.abilities.get(battle.weather).name;