[Bug Fix] Illusions will now properly display armor to other clients when they zone in. (#1958)

* Fix for illusion wear change

On zone in, mobs with illusions were not displaying correct armor.

* [Bug Fix] Illusions will now properly display armor to other clients when they zone in

better looping
This commit is contained in:
KayenEQ
2022-02-03 22:04:15 -05:00
committed by GitHub
parent cc0371c16e
commit 5ce2889210
7 changed files with 52 additions and 0 deletions
+19
View File
@@ -4686,6 +4686,25 @@ void EntityList::SendAppearanceEffects(Client *c)
}
}
void EntityList::SendIllusionWearChange(Client *c)
{
if (!c) {
return;
}
for (auto &e : mob_list) {
auto &mob = e.second;
if (mob) {
if (mob == c) {
continue;
}
mob->SendIllusionWearChange(c);
}
}
}
void EntityList::ZoneWho(Client *c, Who_All_Struct *Who)
{
// This is only called for SoF clients, as regular /who is now handled server-side for that client.