Fix Formatting
parent
282db5e15f
commit
bc3fd217b7
|
|
@ -2207,7 +2207,7 @@ export class MovePhase extends BattlePhase {
|
|||
}
|
||||
|
||||
// Move redirection abilities (ie. Storm Drain) only support single target moves
|
||||
const moveTarget = this.targets.length === 1
|
||||
const moveTarget = this.targets.length === 1
|
||||
? new Utils.IntegerHolder(this.targets[0])
|
||||
: null;
|
||||
if (moveTarget) {
|
||||
|
|
@ -2222,8 +2222,7 @@ export class MovePhase extends BattlePhase {
|
|||
moveTarget.value = oldTarget;
|
||||
}
|
||||
this.targets[0] = moveTarget.value;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (this.targets.length === 1 && this.targets[0] === BattlerIndex.ATTACKER) {
|
||||
if (this.pokemon.turnData.attacksReceived.length) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue