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.
This commit is contained in:
notpatchmaybe 2024-05-09 01:52:51 +01:00 committed by GitHub
parent f3920ee5a8
commit 8f596c9170
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}
}