Fix tag source linking

This commit is contained in:
Flashfyre committed 2024-03-29 15:43:36 -04:00
1 parent dff9a21a0b
commit fa7c1684f7
3 files changed
+6 -1

No files matched your search

+1 -1
View File
@@ -1366,7 +1366,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
}
removeTagsBySourceId(sourceId: integer): void {
this.findAndRemoveTags(t => t.sourceId === sourceId);
this.findAndRemoveTags(t => t.isSourceLinked() && t.sourceId === sourceId);
}
transferTagsBySourceId(sourceId: integer, newSourceId: integer): void {