added new arenaroomtag parent class
This commit is contained in:
parent
44348ce6da
commit
cd1bff287f
File diff suppressed because it is too large
Load Diff
|
@ -832,12 +832,22 @@ class StickyWebTag extends ArenaTrapTag {
|
|||
|
||||
}
|
||||
|
||||
export class ArenaRoomTag extends ArenaTag {
|
||||
constructor(tagType: ArenaTagType, turnCount: number, sourceMove: Moves, sourceId: number) {
|
||||
super(tagType, turnCount, sourceMove, sourceId);
|
||||
}
|
||||
|
||||
override onOverlap(arena: Arena): void {
|
||||
arena.removeTag(this.tagType);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Arena Tag class for {@link https://bulbapedia.bulbagarden.net/wiki/Trick_Room_(move) Trick Room}.
|
||||
* Reverses the Speed stats for all Pokémon on the field as long as this arena tag is up,
|
||||
* also reversing the turn order for all Pokémon on the field as well.
|
||||
*/
|
||||
export class TrickRoomTag extends ArenaTag {
|
||||
export class TrickRoomTag extends ArenaRoomTag {
|
||||
constructor(turnCount: integer, sourceId: integer) {
|
||||
super(ArenaTagType.TRICK_ROOM, turnCount, Moves.TRICK_ROOM, sourceId);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue