1
0

Fix to clear the stealth/invis list when CancelAllStealth is called, additionally to send the update to clients

This commit is contained in:
Emagi 2025-02-01 06:52:55 -05:00
parent 31c45c884c
commit 2d4e3f4888

View File

@ -2694,6 +2694,7 @@ void Entity::CancelAllStealth() {
}
did_change = true;
}
stealth_list->clear();
}
MutexList<LuaSpell*>* invis_list = control_effects[CONTROL_EFFECT_TYPE_INVIS];
if (invis_list){
@ -2707,14 +2708,17 @@ void Entity::CancelAllStealth() {
}
did_change = true;
}
invis_list->clear();
}
if (did_change){
info_changed = true;
changed = true;
AddChangedZoneSpawn();
if (IsPlayer())
if (IsPlayer()) {
((Player*)this)->SetCharSheetChanged(true);
GetZone()->SendAllSpawnsForVisChange(((Player*)this)->GetClient());
}
}
}