This commit is contained in:
Lylian 2024-08-19 22:43:31 +02:00
parent 7214c70f93
commit 20295da912

View File

@ -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) {