Fix Abstract Class Errors
This commit is contained in:
parent
756add30bd
commit
128d1c20d1
|
@ -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) {
|
constructor(type: ModifierType, pokemonId: number, stackCount?: number) {
|
||||||
super(type, pokemonId, stackCount);
|
super(type, pokemonId, stackCount);
|
||||||
}
|
}
|
||||||
|
@ -2005,6 +2005,14 @@ export abstract class FieldEffectModifier extends PokemonHeldItemModifier {
|
||||||
return true;
|
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 {
|
override getMaxHeldItemCount(_pokemon?: Pokemon): number {
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue