mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-02-25 05:28:27 +00:00
nit
This commit is contained in:
parent
7214c70f93
commit
20295da912
@ -2259,10 +2259,8 @@ export class PostSummonTransformAbAttr extends PostSummonAbAttr {
|
|||||||
let target: Pokemon = targets[0];
|
let target: Pokemon = targets[0];
|
||||||
if (targets.length > 1) {
|
if (targets.length > 1) {
|
||||||
pokemon.scene.executeWithSeedOffset(() => target = Utils.randSeedItem(targets), pokemon.scene.currentBattle.waveIndex);
|
pokemon.scene.executeWithSeedOffset(() => target = Utils.randSeedItem(targets), pokemon.scene.currentBattle.waveIndex);
|
||||||
} else if (targets.length === 1) {
|
|
||||||
target = targets[0];
|
|
||||||
} else {
|
} else {
|
||||||
return false;
|
target = targets[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (target.battleData.illusion.active) {
|
if (target.battleData.illusion.active) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user