mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Auras: make transform auras honor creature_template trigger flag and choose always invisible models
Closes #19211
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user