mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 16:38:42 +01:00
Core/Scripts: Fixed Crok event not starting
[*] Fixed Svalna entering in combat with people ouside of room Closes #8186
This commit is contained in:
2
sql/updates/world/3.3.5/2017_01_21_00_world.sql
Normal file
2
sql/updates/world/3.3.5/2017_01_21_00_world.sql
Normal 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
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user