Implemented barrier-breaking moves (#130)

* Implemented barrier-breaking moves

* removed (P) from move names

* refactored to support defog
This commit is contained in:
lucfd authored and GitHub committed 2024-04-14 22:26:58 -04:00
1 parent e0dd7d6d48
commit d699a0f7d4
2 files changed
+54 -6

No files matched your search

+10
View File
@@ -541,6 +541,16 @@ export class Arena {
return !!tag;
}
removeTagOnSide(tagType: ArenaTagType, side: ArenaTagSide): boolean {
const tag = this.getTagOnSide(tagType, side);
if (tag) {
tag.onRemove(this);
this.tags.splice(this.tags.indexOf(tag), 1);
}
return !!tag;
}
removeAllTags(): void {
while (this.tags.length) {
this.tags[0].onRemove(this);