mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-24 16:29:27 +02:00
fix Black Sludge on session reload
This commit is contained in:
parent
8ce5de6d45
commit
6add8d91ba
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user