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…
Reference in New Issue