From def8528a42639e6a5805ee75667734659b123396 Mon Sep 17 00:00:00 2001 From: Sbug98 Date: Mon, 13 May 2024 18:22:46 +0200 Subject: [PATCH] removed old comments --- src/data/ability.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/data/ability.ts b/src/data/ability.ts index 58862100a..a15ca9611 100644 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -2120,18 +2120,14 @@ export class PostTurnHurtIfSleepingAbAttr extends PostTurnAbAttr { */ applyPostTurn(pokemon: Pokemon, passive: boolean, args: any[]): boolean | Promise { let hadEffect: boolean = false; - //cycle on each opponent for(let opp of pokemon.getOpponents()) { - //check if anyone of them is sleeping if(opp.status !== undefined && opp.status.effect === StatusEffect.SLEEP) { - //if so, deal a min of 1 damage and queue a message opp.damageAndUpdate(Math.floor(Math.max(1, opp.getMaxHp() / 8)), HitResult.OTHER); pokemon.scene.queueMessage(getPokemonMessage(opp, ' is tormented!')); hadEffect = true; } } - //returns true only if one of the opponents were sleeping return hadEffect; }