mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-26 01:09:29 +02:00
Remove unnecessary code
This commit is contained in:
parent
32f7c19501
commit
5fa5a49688
@ -2454,7 +2454,7 @@ export function getPartyLuckValue(party: Pokemon[]): integer {
|
||||
}, 0, party[0].scene.seed);
|
||||
return DailyLuck.value;
|
||||
}
|
||||
const luck = Phaser.Math.Clamp(party.map(p => p.isAllowedInBattle() ? (p.scene.gameMode.isDaily ? 0 : p.getLuck()) : 0)
|
||||
const luck = Phaser.Math.Clamp(party.map(p => p.isAllowedInBattle() ? p.getLuck() : 0)
|
||||
.reduce((total: integer, value: integer) => total += value, 0), 0, 14);
|
||||
return luck ?? 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user