Core/ScriptedAI: Add ResetLootMode() to BossAI::_Reset() and remove some redundant calls in General Vezax script
This commit is contained in:
@@ -518,6 +518,7 @@ void BossAI::_Reset()
|
|||||||
if (!me->isAlive())
|
if (!me->isAlive())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
me->ResetLootMode();
|
||||||
events.Reset();
|
events.Reset();
|
||||||
summons.DespawnAll();
|
summons.DespawnAll();
|
||||||
if (instance)
|
if (instance)
|
||||||
|
|||||||
@@ -284,7 +284,6 @@ public:
|
|||||||
if (me->HasAura(SPELL_TWILIGHT_REVENGE))
|
if (me->HasAura(SPELL_TWILIGHT_REVENGE))
|
||||||
me->RemoveAurasDueToSpell(SPELL_TWILIGHT_REVENGE);
|
me->RemoveAurasDueToSpell(SPELL_TWILIGHT_REVENGE);
|
||||||
|
|
||||||
me->ResetLootMode();
|
|
||||||
me->SetHomePosition(3246.57f, 551.263f, 58.6164f, 4.66003f);
|
me->SetHomePosition(3246.57f, 551.263f, 58.6164f, 4.66003f);
|
||||||
|
|
||||||
achievProgress = 0;
|
achievProgress = 0;
|
||||||
|
|||||||
@@ -106,9 +106,6 @@ public:
|
|||||||
{
|
{
|
||||||
_Reset();
|
_Reset();
|
||||||
|
|
||||||
events.Reset();
|
|
||||||
summons.DespawnAll();
|
|
||||||
me->ResetLootMode();
|
|
||||||
bShadowDodger = true;
|
bShadowDodger = true;
|
||||||
bSmellSaronite = true;
|
bSmellSaronite = true;
|
||||||
bAnimusDead = false;
|
bAnimusDead = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user