Fix Abstract Class Errors

This commit is contained in:
xsn34kzx 2024-11-04 23:20:35 -05:00
parent 756add30bd
commit 128d1c20d1

View File

@ -1995,7 +1995,7 @@ export class ResetNegativeStatStageModifier extends PokemonHeldItemModifier {
}
}
export abstract class FieldEffectModifier extends PokemonHeldItemModifier {
export class FieldEffectModifier extends PokemonHeldItemModifier {
constructor(type: ModifierType, pokemonId: number, stackCount?: number) {
super(type, pokemonId, stackCount);
}
@ -2005,6 +2005,14 @@ export abstract class FieldEffectModifier extends PokemonHeldItemModifier {
return true;
}
override matchType(modifier: Modifier): boolean {
return modifier instanceof FieldEffectModifier;
}
override clone(): FieldEffectModifier {
return new FieldEffectModifier(this.type, this.pokemonId, this.stackCount);
}
override getMaxHeldItemCount(_pokemon?: Pokemon): number {
return 2;
}