mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-24 14:16:31 +00:00
fix(Scripts/ICC): NPC Muradin Dialogues (#18931)
Co-authored-by: Meji <alvaro.megias@outlook.com> Co-authored-by: 天鹿 <18535853+PkllonG@users.noreply.github.com>
This commit is contained in:
@@ -3029,8 +3029,11 @@ std::string Creature::GetScriptName() const
|
||||
uint32 Creature::GetScriptId() const
|
||||
{
|
||||
if (CreatureData const* creatureData = GetCreatureData())
|
||||
if (uint32 scriptId = creatureData->ScriptId)
|
||||
{
|
||||
uint32 scriptId = creatureData->ScriptId;
|
||||
if (scriptId && GetEntry() == creatureData->id1)
|
||||
return scriptId;
|
||||
}
|
||||
|
||||
return sObjectMgr->GetCreatureTemplate(GetEntry())->ScriptID;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user