Core/Unit: properly reset displayIds when having a shapeshift aura active

Closes #19309
This commit is contained in:
ariel- authored and Aokromes committed 2017-03-20 16:45:09 +01:00
1 parent 284d029e57
commit f2c7c5cf0c
1 file changed
+8 -2
+8 -2
View File
@@ -13350,16 +13350,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()