Make luck independent from shininess and variant
This commit is contained in:
1 parent
744ff2899b
commit
bf2a83993c
7 files changed
+44
-2
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() || !p.isShiny() ? 0 : !p.isFusion() || !p.shiny || !p.fusionShiny ? p.variant + 1 : (p.variant + 1) + (p.fusionVariant + 1))
|
||||
return Phaser.Math.Clamp(party.map(p => p.isFainted() ? 0 : p.luck)
|
||||
.reduce((total: integer, value: integer) => total += value, 0), 0, 14);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user