mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 16:02:20 +02:00
#3772 renamed variables
This commit is contained in:
parent
8ceb646aa1
commit
e9a7459bda
@ -822,11 +822,11 @@ export class DrowsyTag extends BattlerTag {
|
||||
}
|
||||
|
||||
canAdd(pokemon: Pokemon): boolean {
|
||||
const checkTerrain = pokemon.scene.arena.terrain?.terrainType !== TerrainType.ELECTRIC || !pokemon.isGrounded();
|
||||
if (checkTerrain === false) {
|
||||
const isNotElectricTerrainProtected = pokemon.scene.arena.terrain?.terrainType !== TerrainType.ELECTRIC || !pokemon.isGrounded();
|
||||
if (!isNotElectricTerrainProtected) {
|
||||
pokemon.scene.queueMessage(i18next.t("terrain:defaultBlockMessage", { pokemonNameWithAffix: getPokemonNameWithAffix(pokemon), terrainName: getTerrainName(TerrainType.ELECTRIC) }));
|
||||
}
|
||||
return checkTerrain;
|
||||
return isNotElectricTerrainProtected;
|
||||
}
|
||||
|
||||
onAdd(pokemon: Pokemon): void {
|
||||
|
Loading…
Reference in New Issue
Block a user