Core/Scripts: Fixed Crok event not starting

[*] Fixed Svalna entering in combat with people ouside of room
Closes #8186
This commit is contained in:
Keader
2017-01-21 11:03:26 -03:00
committed by Aokromes
parent 9f6fc5f123
commit b45652e8a5
2 changed files with 5 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
UPDATE `creature_template` SET `unit_flags`=512 WHERE `entry`=37129; -- Crok
UPDATE `creature_addon` SET `auras`=70203 WHERE `guid`=137753; -- Svalna

View File

@@ -130,6 +130,7 @@ enum ICCSpells
SPELL_IMPALING_SPEAR = 71443,
SPELL_AETHER_SHIELD = 71463,
SPELL_HURL_SPEAR = 71466,
SPELL_DIVINE_SURGE = 71465,
// Captain Arnath
SPELL_DOMINATE_MIND = 14515,
@@ -776,6 +777,7 @@ class boss_sister_svalna : public CreatureScript
_EnterCombat();
if (Creature* crok = ObjectAccessor::GetCreature(*me, instance->GetGuidData(DATA_CROK_SCOURGEBANE)))
crok->AI()->Talk(SAY_CROK_COMBAT_SVALNA);
DoCastSelf(SPELL_DIVINE_SURGE, true);
events.ScheduleEvent(EVENT_SVALNA_COMBAT, 9000);
events.ScheduleEvent(EVENT_IMPALING_SPEAR, urand(40000, 50000));
events.ScheduleEvent(EVENT_AETHER_SHIELD, urand(100000, 110000));
@@ -1029,6 +1031,7 @@ class npc_crok_scourgebane : public CreatureScript
{
// pause pathing until trash pack is cleared
case 0:
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_NPC);
Talk(SAY_CROK_COMBAT_WP_0);
if (!_aliveTrash.empty())
SetEscortPaused(true);