BUG: Ensure that the blind fold flashing queue is only initialized by player characters

This commit is contained in:
bananarama92 2026-04-24 12:06:24 +02:00
parent 594b845f30
commit 6726d60f74
No known key found for this signature in database
GPG key ID: E83C7D3B5DA36248

View file

@ -1016,7 +1016,9 @@ function InventoryRemove(C, AssetGroup, Refresh=true) {
for (let E = 0; E < C.Appearance.length; E++)
if (C.Appearance[E].Asset.Group.Name == AssetGroup) {
C.Appearance.splice(E, 1);
BlindFlashQueue = true;
if (C.IsPlayer()) {
BlindFlashQueue = true;
}
if (Refresh) CharacterRefresh(C);
return;
}