From 8f596c9170770024fcea75183a7885444b06f04c Mon Sep 17 00:00:00 2001 From: notpatchmaybe <104580041+notpatchmaybe@users.noreply.github.com> Date: Thu, 9 May 2024 01:52:51 +0100 Subject: [PATCH] Spectral Thief stat-stealing added (Still Partial) Spectral Thief now steals stats and outputs a message similar to the original game's if it does. Still marked partial as the move needs to have the phase where it deals damage moved to after the stats are stolen, not before, but I'm not familiar enough with the project yet to do this. isStatStolen checking fixed. --- src/data/move.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/data/move.ts b/src/data/move.ts index 06214a2af96..d3bece992aa 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -1729,12 +1729,14 @@ export class StealStatsAttr extends MoveEffectAttr for (let s = 0; s < target.summonData.battleStats.length; s++) { user.summonData.battleStats[s] += target.summonData.battleStats[s]; + if(target.summonData.battleStats[s] > 0 ) + isStatStolen = true; target.summonData.battleStats[s] = 0; } target.updateInfo(); user.updateInfo(); if (isStatStolen) - target.scene.queueMessage(getPokemonMessage(user, `stole the target's boosted stats!`)); + target.scene.queueMessage(getPokemonMessage(user, `stole the targets boosted stats!`)); return true; } }