diff --git a/src/data/battler-tags.ts b/src/data/battler-tags.ts index b8f1b56b51c..41a618f7a0c 100644 --- a/src/data/battler-tags.ts +++ b/src/data/battler-tags.ts @@ -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 {