Closed Eranziel closed 4 months ago
Likely also happens on pilot imports, for example when the frame is added to a mech and triggers an image change.
I haven't looked into this yet, but I suspect some of it is stuff for activeEffects in an _onUpdate method triggering further updates, it should probably be moved elsewhere. Ideally, it would be in _preUpdate to modify the update data and get it done in one db operation and also only on one client, but if it's not feasible, then it should probably be guarded by ownership rather than specifically gm permission.
Describe the bug Adding an NPC class to an NPC while player clients are logged in produces errors.
To Reproduce Steps to reproduce the behavior:
Expected behavior The class swap code should only run on one GM client, and therefore not cause any errors.