Implemented barrier-breaking moves (#130)
* Implemented barrier-breaking moves * removed (P) from move names * refactored to support defog
This commit is contained in:
1 parent
e0dd7d6d48
commit
d699a0f7d4
2 files changed
+54
-6
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user