Core/Unit: properly reset displayIds when having a shapeshift aura active
Closes #19309
This commit is contained in:
1 parent
284d029e57
commit
f2c7c5cf0c
1 file changed
+8
-2
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user