Remove unnecessary code

This commit is contained in:
RedstonewolfX 2024-09-25 12:04:31 -04:00
parent 32f7c19501
commit 5fa5a49688

View File

@ -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;
}