|
@@ -79,6 +79,13 @@ class unitTracker {
|
|
|
else {
|
|
else {
|
|
|
this.spawnedNPCS.set(event.gameId, event);
|
|
this.spawnedNPCS.set(event.gameId, event);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ // eslint-disable-next-line no-magic-numbers
|
|
|
|
|
+ if (event.replaceId !== BigInt(0)) {
|
|
|
|
|
+ this.spawnedNPCS.delete(event.gameId);
|
|
|
|
|
+ this.spawnedSummons.delete(event.gameId);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|