Skip to content

Commit

Permalink
fix(Scripts/ICC): NPC Muradin Dialogues (#18931)
Browse files Browse the repository at this point in the history
Co-authored-by: Meji <[email protected]>
Co-authored-by: 天鹿 <[email protected]>
  • Loading branch information
3 people committed Aug 31, 2024
1 parent 43d6069 commit 3b45e90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/server/game/Entities/Creature/Creature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ class instance_icecrown_citadel : public InstanceMapScript
case NPC_SE_HIGH_OVERLORD_SAURFANG:
if (TeamIdInInstance == TEAM_ALLIANCE)
{
creature->UpdateEntry(NPC_SE_MURADIN_BRONZEBEARD, creature->GetCreatureData());
creature->UpdateEntry(NPC_SE_MURADIN_BRONZEBEARD, true);
creature->LoadEquipment();
}
DeathbringerSaurfangEventGUID = creature->GetGUID();
Expand Down

0 comments on commit 3b45e90

Please sign in to comment.