mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-13 03:42:18 +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))
|
if (!super.apply(user, target, move, args))
|
||||||
return false;
|
return false;
|
||||||
let priorBoostArray : integer[] = [ 0, 0, 0, 0, 0, 0, 0 ];
|
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++)
|
for (let s = 0; s < target.summonData.battleStats.length; s++)
|
||||||
{
|
{
|
||||||
priorBoostArray[s] = user.summonData.battleStats[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];
|
user.summonData.battleStats[s] = target.summonData.battleStats[s];
|
||||||
target.summonData.battleStats[s] = priorBoostArray[s];
|
target.summonData.battleStats[s] = priorBoostArray[s];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user