Add fusion luck as a separate field
This commit is contained in:
1 parent
bf2a83993c
commit
6b9542511f
4 files changed
+18
-6
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user