mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-20 23:32:19 +02:00
Update modifier-type.ts
This commit is contained in:
parent
d12aa635af
commit
bdd84a4f9a
@ -2554,7 +2554,7 @@ export function getPartyLuckValue(party: Pokemon[]): number {
|
|||||||
return DailyLuck.value;
|
return DailyLuck.value;
|
||||||
}
|
}
|
||||||
const eventSpecies = globalScene.eventManager.getEventLuckBoostedSpecies();
|
const eventSpecies = globalScene.eventManager.getEventLuckBoostedSpecies();
|
||||||
const luck = Phaser.Math.Clamp(party.map(p => p.isAllowedInBattle() ? p.getLuck() + (eventSpecies.includes(p.species.speciesId) ? 3 : 0) : 0)
|
const luck = Phaser.Math.Clamp(party.map(p => p.isAllowedInBattle() ? p.getLuck() + (eventSpecies.includes(p.species.speciesId) ? 1 : 0) : 0)
|
||||||
.reduce((total: number, value: number) => total += value, 0), 0, 14);
|
.reduce((total: number, value: number) => total += value, 0), 0, 14);
|
||||||
return Math.min(globalScene.eventManager.getEventLuckBoost() + (luck ?? 0), 14);
|
return Math.min(globalScene.eventManager.getEventLuckBoost() + (luck ?? 0), 14);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user