#3772 renamed variables

This commit is contained in:
Jesse Chung 2024-09-01 19:38:16 -04:00
parent 8ceb646aa1
commit e9a7459bda

View File

@ -822,11 +822,11 @@ export class DrowsyTag extends BattlerTag {
} }
canAdd(pokemon: Pokemon): boolean { canAdd(pokemon: Pokemon): boolean {
const checkTerrain = pokemon.scene.arena.terrain?.terrainType !== TerrainType.ELECTRIC || !pokemon.isGrounded(); const isNotElectricTerrainProtected = pokemon.scene.arena.terrain?.terrainType !== TerrainType.ELECTRIC || !pokemon.isGrounded();
if (checkTerrain === false) { if (!isNotElectricTerrainProtected) {
pokemon.scene.queueMessage(i18next.t("terrain:defaultBlockMessage", { pokemonNameWithAffix: getPokemonNameWithAffix(pokemon), terrainName: getTerrainName(TerrainType.ELECTRIC) })); pokemon.scene.queueMessage(i18next.t("terrain:defaultBlockMessage", { pokemonNameWithAffix: getPokemonNameWithAffix(pokemon), terrainName: getTerrainName(TerrainType.ELECTRIC) }));
} }
return checkTerrain; return isNotElectricTerrainProtected;
} }
onAdd(pokemon: Pokemon): void { onAdd(pokemon: Pokemon): void {