mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-01-31 13:17:21 +00:00
lost-at-sea ME: fix using DAMAGE_PERCENTAGE for damage calculation
This commit is contained in:
parent
b7bf22e3e5
commit
524d4a4ca7
@ -89,7 +89,7 @@ export const LostAtSeaEncounter: MysteryEncounter =
|
||||
.withOptionPhase(async (scene: BattleScene) => {
|
||||
const party = scene.getParty().filter((p) => !p.isFainted());
|
||||
party.forEach((pkm) => {
|
||||
const damage = Math.round(pkm.getMaxHp() / 3);
|
||||
const damage = Math.round(pkm.getMaxHp() / (DAMAGE_PERCENTAGE / 100));
|
||||
pkm.hp = Math.min(pkm.hp, damage);
|
||||
});
|
||||
leaveEncounterWithoutBattle(scene);
|
||||
|
Loading…
x
Reference in New Issue
Block a user