fix(render): only fire conquest FX for the local player's conquests

Skip ConquestEvent updates whose conquerorId isn't the local player so the
gold popup + sword sprite only triggers on your own captures.
This commit is contained in:
evanpelle
2026-05-27 16:07:38 -07:00
parent 9bf6b5af74
commit 21e42ce461
+2
View File
@@ -534,7 +534,9 @@ export class GameView implements GameMap {
reachedTarget: u.reachedTarget,
});
}
const myID = this._myPlayer?.id();
for (const c of gu.updates[GameUpdateType.ConquestEvent] ?? []) {
if (c.conquerorId !== myID) continue;
const conquered = this._players.get(c.conqueredId);
if (conquered === undefined) continue;
const loc = conquered.nameLocation();