From 8e6fa9a48c5d5f4f6f9e5423c5517de11ec5a13d Mon Sep 17 00:00:00 2001 From: geeil-han Date: Fri, 7 Feb 2025 23:24:07 +0100 Subject: [PATCH] changed comments --- src/data/move.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/data/move.ts b/src/data/move.ts index 17521d163af..e04e2d4bb46 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -4403,13 +4403,17 @@ export class SpectralThiefAttr extends StatChangeBeforeDmgCalcAttr { * @returns true if stat stages where correctly stolen */ apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean { - // Copy all positive stat stages to user and reduce copied stat stages on target + /** + * Copy all positive stat stages to user and reduce copied stat stages on target. + */ for (const s of BATTLE_STATS) { const statStageValueTarget = target.getStatStage(s); const statStageValueUser = user.getStatStage(s); if (statStageValueTarget > 0) { - // Only value of up to 6 can be stolen (stat stages don't exceed 6) + /** + * Only value of up to 6 can be stolen (stat stages don't exceed 6) + */ const availableToSteal = Math.min(statStageValueTarget, 6 - statStageValueUser); globalScene.unshiftPhase(new StatStageChangePhase(user.getBattlerIndex(), this.selfTarget, [ s ], availableToSteal));