[Bug] [Move] Opponent's Healing Wish now checks opponent's party (#5207)

This commit is contained in:
Esca 2025-01-30 20:26:05 +01:00 committed by GitHub
parent 6b36e4ca06
commit a255e06d82
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1892,7 +1892,8 @@ export class SacrificialFullRestoreAttr extends SacrificialAttr {
}
// We don't know which party member will be chosen, so pick the highest max HP in the party
const maxPartyMemberHp = globalScene.getPlayerParty().map(p => p.getMaxHp()).reduce((maxHp: integer, hp: integer) => Math.max(hp, maxHp), 0);
const party = user.isPlayer() ? globalScene.getPlayerParty() : globalScene.getEnemyParty();
const maxPartyMemberHp = party.map(p => p.getMaxHp()).reduce((maxHp: integer, hp: integer) => Math.max(hp, maxHp), 0);
globalScene.pushPhase(
new PokemonHealPhase(