mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-25 08:16:04 +00:00
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) {
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user