Core/Auras: make transform auras honor creature_template trigger flag and choose always invisible models

Closes #19211

(cherry picked from commit 6ba0d489ad)
This commit is contained in:
ariel-
2017-03-07 01:23:35 -03:00
parent d20459f00e
commit 8998c9ea95

View File

@@ -1999,8 +1999,9 @@ void AuraEffect::HandleAuraTransform(AuraApplication const* aurApp, uint8 mode,
{
uint32 model_id = 0;
if (uint32 modelid = ci->GetRandomValidModelId())
model_id = modelid; // Will use the default model here
// choose a model, based on trigger flag
if (uint32 modelid = sObjectMgr->ChooseDisplayId(ci))
model_id = modelid;
target->SetDisplayId(model_id);