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

Closes #19211
This commit is contained in:
ariel-
2017-03-07 01:23:35 -03:00
parent a1b622e9cc
commit 6ba0d489ad

View File

@@ -2064,8 +2064,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;
// Polymorph (sheep)
if (GetSpellInfo()->SpellFamilyName == SPELLFAMILY_MAGE && GetSpellInfo()->SpellIconID == 82 && GetSpellInfo()->SpellVisual[0] == 12978)