mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-10 18:32:16 +02:00
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:
parent
f3920ee5a8
commit
8f596c9170
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user