fix Black Sludge on session reload

This commit is contained in:
ImperialSympathizer 2024-09-28 13:44:48 -04:00
parent 8ce5de6d45
commit 6add8d91ba

View File

@ -2586,7 +2586,7 @@ export class HealShopCostModifier extends PersistentModifier {
constructor(type: ModifierType, shopMultiplier: number, stackCount?: integer) {
super(type, stackCount);
this.shopMultiplier = shopMultiplier;
this.shopMultiplier = shopMultiplier ?? 2.5;
}
match(modifier: Modifier): boolean {
@ -2604,6 +2604,10 @@ export class HealShopCostModifier extends PersistentModifier {
return true;
}
getArgs(): any[] {
return super.getArgs().concat(this.shopMultiplier);
}
getMaxStackCount(scene: BattleScene): integer {
return 1;
}