Fix Formatting

This commit is contained in:
Athebyne 2024-05-10 11:14:28 -04:00 committed by GitHub
parent 282db5e15f
commit bc3fd217b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2224,7 +2224,6 @@ export class MovePhase extends BattlePhase {
this.targets[0] = moveTarget.value;
}
if (this.targets.length === 1 && this.targets[0] === BattlerIndex.ATTACKER) {
if (this.pokemon.turnData.attacksReceived.length) {
const attacker = this.pokemon.turnData.attacksReceived.length ? this.pokemon.scene.getPokemonById(this.pokemon.turnData.attacksReceived[0].sourceId) : null;