Add fusion luck as a separate field

This commit is contained in:
Flashfyre committed 2024-04-26 18:27:00 -04:00
1 parent bf2a83993c
commit 6b9542511f
4 files changed
+18 -6

No files matched your search

+1 -1
View File
@@ -1518,7 +1518,7 @@ export class ModifierTypeOption {
}
export function getPartyLuckValue(party: Pokemon[]): integer {
return Phaser.Math.Clamp(party.map(p => p.isFainted() ? 0 : p.luck)
return Phaser.Math.Clamp(party.map(p => p.isFainted() ? 0 : p.getLuck())
.reduce((total: integer, value: integer) => total += value, 0), 0, 14);
}