Update modifier-type.ts

This commit is contained in:
RedstonewolfX 2024-08-26 13:09:57 -04:00
parent 9baeac8d40
commit 48fbc571cd
1 changed files with 1 additions and 1 deletions

View File

@ -2223,7 +2223,7 @@ export class ModifierTypeOption {
}
export function getPartyLuckValue(party: Pokemon[]): integer {
if (party[0].scene.gameMode.modeId === GameModes.DAILY) {
if (party[0].scene.gameMode.isDaily) {
return 0;
}
const luck = Phaser.Math.Clamp(party.map(p => p.isFainted() ? 0 : p.getLuck())