added new arenaroomtag parent class

This commit is contained in:
frutescens 2024-10-11 09:26:09 -07:00
parent 44348ce6da
commit cd1bff287f
2 changed files with 1300 additions and 1631 deletions

2919
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -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);
}