mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-20 22:39:31 +02:00
Update src/field/pokemon.ts
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
This commit is contained in:
parent
d8b60a1484
commit
42d73c4ef2
@ -2673,7 +2673,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||
applyPreDefendAbAttrs(ReceivedMoveDamageMultiplierAbAttr, this, source, move, cancelled, simulated, damage);
|
||||
|
||||
/** Additionally apply friend guard damage reduction if ally has it. */
|
||||
if (this.scene.currentBattle.double && this.getAlly().isActive()) {
|
||||
if (this.scene.currentBattle.double && this.getAlly()?.isActive(true)) {
|
||||
applyPreDefendAbAttrs(FriendGuardAbAttr, this.getAlly(), source, move, cancelled, simulated, damage);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user