Linting fix

This commit is contained in:
TaylorLeLievre 2024-08-25 13:35:42 -04:00
parent 17d7410e57
commit 8accf0aee8

View File

@ -4055,10 +4055,10 @@ export class PostFaintHPDamageAbAttr extends PostFaintAbAttr {
applyPostFaint(pokemon: Pokemon, passive: boolean, simulated: boolean, attacker: Pokemon | undefined, move: Move | undefined, hitResult: HitResult | undefined, args: any[]): boolean {
if (move !== undefined && attacker !== undefined) { //If the mon didn't die to indirect damage
if (!simulated) {
const damage = pokemon.turnData.attacksReceived[0].damage;
const damage = pokemon.turnData.attacksReceived[0].damage;
attacker.damageAndUpdate((damage), HitResult.OTHER);
attacker.turnData.damageTaken += damage;
}
}
}
return true;
}