mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 15:40:45 +01:00
Scripts/Icecrown Citadel
* Fixed Deathbringer Saurfang faction * Fixed Coldflame faction
This commit is contained in:
1
sql/updates/world/2014_09_25_02_world.sql
Normal file
1
sql/updates/world/2014_09_25_02_world.sql
Normal file
@@ -0,0 +1 @@
|
||||
UPDATE `creature_template` SET `faction`=21 WHERE `entry`=36672; -- Coldflame
|
||||
@@ -201,7 +201,8 @@ enum Actions
|
||||
|
||||
enum Misc
|
||||
{
|
||||
DATA_MADE_A_MESS = 45374613 // 4537, 4613 are achievement IDs
|
||||
DATA_MADE_A_MESS = 45374613, // 4537, 4613 are achievement IDs
|
||||
FACTION_SCOURGE = 974,
|
||||
};
|
||||
|
||||
enum MovePoints
|
||||
@@ -460,6 +461,8 @@ class boss_deathbringer_saurfang : public CreatureScript
|
||||
switch (eventId)
|
||||
{
|
||||
case EVENT_INTRO_ALLIANCE_2:
|
||||
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
|
||||
me->setFaction(FACTION_SCOURGE);
|
||||
Talk(SAY_INTRO_ALLIANCE_2);
|
||||
break;
|
||||
case EVENT_INTRO_ALLIANCE_3:
|
||||
@@ -471,6 +474,8 @@ class boss_deathbringer_saurfang : public CreatureScript
|
||||
DoCast(me, SPELL_GRIP_OF_AGONY);
|
||||
break;
|
||||
case EVENT_INTRO_HORDE_2:
|
||||
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
|
||||
me->setFaction(FACTION_SCOURGE);
|
||||
Talk(SAY_INTRO_HORDE_2);
|
||||
break;
|
||||
case EVENT_INTRO_HORDE_4:
|
||||
@@ -544,7 +549,6 @@ class boss_deathbringer_saurfang : public CreatureScript
|
||||
case PHASE_INTRO_A:
|
||||
case PHASE_INTRO_H:
|
||||
{
|
||||
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
|
||||
// controls what events will execute
|
||||
events.SetPhase(uint32(action));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user