diff --git a/src/modifier/modifier.ts b/src/modifier/modifier.ts index f5bbedef666..d955385ecee 100644 --- a/src/modifier/modifier.ts +++ b/src/modifier/modifier.ts @@ -165,9 +165,9 @@ export abstract class PersistentModifier extends Modifier { public stackCount: number; public virtualStackCount: number; - constructor(type: ModifierType, stackCount?: number) { + constructor(type: ModifierType, stackCount: number = 1) { super(type); - this.stackCount = stackCount ?? 1; + this.stackCount = stackCount; this.virtualStackCount = 0; }