Add Toxic Spikes neutralization

This commit is contained in:
Flashfyre committed 2024-03-17 23:47:46 -04:00
1 parent 4432522e15
commit 27e40d8526
2 files changed
+30 -5

No files matched your search

+12 -3
View File
@@ -470,13 +470,22 @@ export class Arena {
}
lapseTags(): void {
const tags = this.tags;
tags.filter(t => !(t.lapse(this))).forEach(t => {
this.tags.filter(t => !(t.lapse(this))).forEach(t => {
t.onRemove(this);
tags.splice(tags.indexOf(t), 1);
this.tags.splice(this.tags.indexOf(t), 1);
});
}
removeTag(tagType: ArenaTagType): boolean {
const tags = this.tags;
const tag = tags.find(t => t.tagType === tagType);
if (tag) {
tag.onRemove(this);
tags.splice(tags.indexOf(tag), 1);
}
return !!tag;
}
removeAllTags(): void {
while (this.tags.length) {
this.tags[0].onRemove(this);