mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 07:18:37 +00:00
[Commands] Cleanup #setanim Command. (#1791)
- Cleanup message and logic. - SetAppearance was not sending to self, so if you modified your own appearance, you wouldn't be able to see it.
This commit is contained in:
+5
-2
@@ -2999,12 +2999,15 @@ const int32& Mob::SetMana(int32 amount)
|
||||
|
||||
|
||||
void Mob::SetAppearance(EmuAppearance app, bool iIgnoreSelf) {
|
||||
if (_appearance == app)
|
||||
if (_appearance == app) {
|
||||
return;
|
||||
}
|
||||
|
||||
_appearance = app;
|
||||
SendAppearancePacket(AT_Anim, GetAppearanceValue(app), true, iIgnoreSelf);
|
||||
if (this->IsClient() && this->IsAIControlled())
|
||||
if (IsClient() && IsAIControlled()) {
|
||||
SendAppearancePacket(AT_Anim, ANIM_FREEZE, false, false);
|
||||
}
|
||||
}
|
||||
|
||||
bool Mob::UpdateActiveLight()
|
||||
|
||||
Reference in New Issue
Block a user