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
(cherry picked from commit 6ba0d489ad)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user