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

Closes #19309

(cherry picked from commit 7a38eaa5a1fe23d8fedb2bfce518abb972b823f7)
This commit is contained in:
ariel-
2020-04-24 17:18:48 +02:00
committed by funjoker
parent dbb21ea844
commit c16cebca64
+5 -2
View File
@@ -10782,7 +10782,10 @@ void Unit::RestoreDisplayId(bool ignorePositiveAurasPreventingMounting /*= false
// transform aura was found
if (handledAura)
{
handledAura->HandleEffect(this, AURA_EFFECT_HANDLE_SEND_FOR_CLIENT, true);
return;
}
// we've found shapeshift
else if (!shapeshiftAura.empty()) // we've found shapeshift
{
@@ -10793,11 +10796,11 @@ void Unit::RestoreDisplayId(bool ignorePositiveAurasPreventingMounting /*= false
SetDisplayId(modelId);
else
SetDisplayId(GetNativeDisplayId());
return;
}
}
// no auras found - set modelid to default
else
SetDisplayId(GetNativeDisplayId());
SetDisplayId(GetNativeDisplayId());
}
void Unit::ClearAllReactives()