Scripts/Icecrown Citadel: Added missing check in Valithria Dreamwalker's combat trigger update, this fixes constant respawning
This commit is contained in:
@@ -535,6 +535,9 @@ class npc_green_dragon_combat_trigger : public CreatureScript
|
|||||||
|
|
||||||
void UpdateAI(uint32 const /*diff*/)
|
void UpdateAI(uint32 const /*diff*/)
|
||||||
{
|
{
|
||||||
|
if (!me->isInCombat())
|
||||||
|
return;
|
||||||
|
|
||||||
std::list<HostileReference*> const& threatList = me->getThreatManager().getThreatList();
|
std::list<HostileReference*> const& threatList = me->getThreatManager().getThreatList();
|
||||||
if (threatList.empty())
|
if (threatList.empty())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user