aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/server/game/Entities/Unit/Unit.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp
index 108396fdf68..78f4179086e 100644
--- a/src/server/game/Entities/Unit/Unit.cpp
+++ b/src/server/game/Entities/Unit/Unit.cpp
@@ -11463,16 +11463,22 @@ void Unit::RestoreDisplayId()
// transform aura was found
if (handledAura)
+ {
handledAura->HandleEffect(this, AURA_EFFECT_HANDLE_SEND_FOR_CLIENT, true);
+ return;
+ }
else if (!shapeshiftAura.empty()) // we've found shapeshift
{
// only one such aura possible at a time
if (uint32 modelId = GetModelForForm(GetShapeshiftForm(), shapeshiftAura.front()->GetId()))
+ {
SetDisplayId(modelId);
+ return;
+ }
}
+
// no auras found - set modelid to default
- else
- SetDisplayId(GetNativeDisplayId());
+ SetDisplayId(GetNativeDisplayId());
}
void Unit::ClearComboPointHolders()