mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-12 19:32:17 +02:00
Removed some lines.
Removed a for loop.
This commit is contained in:
parent
5ecdb70f47
commit
66a8488f13
@ -1782,12 +1782,10 @@ export class SwapStatsAttr extends MoveEffectAttr
|
||||
if (!super.apply(user, target, move, args))
|
||||
return false;
|
||||
let priorBoostArray : integer[] = [ 0, 0, 0, 0, 0, 0, 0 ];
|
||||
priorBoostArray[s] = user.summonData.battleStats[s];
|
||||
for (let s = 0; s < target.summonData.battleStats.length; s++)
|
||||
{
|
||||
priorBoostArray[s] = user.summonData.battleStats[s];
|
||||
}
|
||||
for (let s = 0; s < target.summonData.battleStats.length; s++)
|
||||
{
|
||||
user.summonData.battleStats[s] = target.summonData.battleStats[s];
|
||||
target.summonData.battleStats[s] = priorBoostArray[s];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user