diff options
-rw-r--r-- | src/server/game/Spells/Auras/SpellAuraEffects.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp index aa621bf02fd..83398fdbb19 100644 --- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp +++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp @@ -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) |