Get the correct faction's party size for Last Respects

This commit is contained in:
Shadow 2024-05-22 01:18:43 -04:00
parent 33f8365192
commit 1e0d8991de

View File

@ -7270,7 +7270,8 @@ export function initMoves() {
.recklessMove(), .recklessMove(),
new AttackMove(Moves.LAST_RESPECTS, Type.GHOST, MoveCategory.PHYSICAL, 50, 100, 10, -1, 0, 9) new AttackMove(Moves.LAST_RESPECTS, Type.GHOST, MoveCategory.PHYSICAL, 50, 100, 10, -1, 0, 9)
.attr(MovePowerMultiplierAttr, (user, target, move) => { .attr(MovePowerMultiplierAttr, (user, target, move) => {
return user.scene.getParty().reduce((acc, pokemonInParty) => acc + (pokemonInParty.status?.effect == StatusEffect.FAINT ? 1 : 0), const party = user.isPlayer() ? user.scene.getParty() : user.scene.getEnemyParty();
return party.reduce((acc, pokemonInParty) => acc + (pokemonInParty.status?.effect == StatusEffect.FAINT ? 1 : 0),
1,) 1,)
}) })
.makesContact(false), .makesContact(false),