[Hotfix] Fix black sludge ME causing non-integer money (#4482)

* Fix tag lapsing on battle start in MEs with free enemy moves

* lapse endure tag as well

* fix black sludge item money calculation

* Update src/modifier/modifier.ts

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>

---------

Co-authored-by: ImperialSympathizer <imperialsympathizer@gmail.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
ImperialSympathizer 2024-09-27 22:34:25 -04:00 committed by GitHub
parent 7eb755ca9c
commit 2b3dbcc72f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -2598,7 +2598,8 @@ export class HealShopCostModifier extends PersistentModifier {
}
apply(args: any[]): boolean {
(args[0] as Utils.IntegerHolder).value *= this.shopMultiplier;
const moneyCost = args[0] as Utils.NumberHolder;
moneyCost.value = Math.floor(moneyCost.value * this.shopMultiplier);
return true;
}