mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 02:46:33 +01:00
Scripts/BlackTemple: 4bc60e650d followup
This commit is contained in:
1
sql/updates/world/3.3.5/2016_11_30_01_world.sql
Normal file
1
sql/updates/world/3.3.5/2016_11_30_01_world.sql
Normal file
@@ -0,0 +1 @@
|
||||
UPDATE `creature_template` SET `InhabitType`=4 WHERE `entry`=23123;
|
||||
@@ -118,13 +118,6 @@ public:
|
||||
creature->SetReactState(REACT_PASSIVE);
|
||||
}
|
||||
|
||||
void Reset() override
|
||||
{
|
||||
_Reset();
|
||||
_intro = false;
|
||||
events.SetPhase(PHASE_INTRO);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* /*who*/) override
|
||||
{
|
||||
_EnterCombat();
|
||||
@@ -150,6 +143,7 @@ public:
|
||||
{
|
||||
_intro = true;
|
||||
Talk(SAY_INTRO);
|
||||
events.SetPhase(PHASE_INTRO);
|
||||
events.ScheduleEvent(EVENT_FINISH_INTRO, Seconds(20));
|
||||
}
|
||||
}
|
||||
@@ -206,8 +200,7 @@ public:
|
||||
events.Repeat(Seconds(18), Seconds(30));
|
||||
break;
|
||||
case EVENT_FINISH_INTRO:
|
||||
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
|
||||
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
|
||||
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE | UNIT_FLAG_NON_ATTACKABLE);
|
||||
me->SetReactState(REACT_AGGRESSIVE);
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user