mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 01:37:37 +01:00
Scripts/Misc: Hover script fixes
(cherry picked from commit 510bc0b7a0)
This commit is contained in:
@@ -228,6 +228,7 @@ struct boss_twin_baseAI : public BossAI
|
||||
void JustDied(Unit* /*killer*/) override
|
||||
{
|
||||
Talk(SAY_DEATH);
|
||||
me->SetHover(false);
|
||||
if (Creature* pSister = GetSister())
|
||||
{
|
||||
if (!pSister->IsAlive())
|
||||
|
||||
@@ -190,8 +190,8 @@ Position const ToCCommonLoc[] =
|
||||
{ 550.955933f, 195.338888f, 395.14000f, 0.0f }, // 4 - Left
|
||||
{ 563.833008f, 195.244995f, 394.585561f, 0.0f }, // 5 - Center
|
||||
{ 573.500000f, 180.500000f, 395.14f, 0.0f }, // 6 Move 0 Right
|
||||
{ 553.5f, 180.5f, 395.14f, 0 }, // 7 Move 0 Left
|
||||
{ 573.0f, 170.0f, 395.14f, 0 }, // 8 Move 1 Right
|
||||
{ 553.5f, 180.5f, 400.5521f, 0 }, // 7 Move 0 Left
|
||||
{ 573.0f, 170.0f, 400.5521f, 0 }, // 8 Move 1 Right
|
||||
{ 549.5139f, 170.1389f, 394.7965f, 5.009095f }, // 9 Move 1 Left
|
||||
{ 563.8f, 216.1f, 395.1f, 0 }, // 10 Behind the door
|
||||
|
||||
|
||||
@@ -350,7 +350,7 @@ Position const VehicleRelocation[] =
|
||||
};
|
||||
|
||||
Position const VX001SummonPos = { 2744.431f, 2569.385f, 364.3968f, 3.141593f };
|
||||
Position const ACUSummonPos = { 2744.650f, 2569.460f, 380.0000f, 0.0f };
|
||||
Position const ACUSummonPos = { 2744.650f, 2569.460f, 380.0000f, 3.141593f };
|
||||
|
||||
static bool IsEncounterFinished(Unit* who)
|
||||
{
|
||||
@@ -1165,6 +1165,8 @@ class boss_aerial_command_unit : public CreatureScript
|
||||
me->RemoveUnitFlag(UnitFlags(UNIT_FLAG_NON_ATTACKABLE | UNIT_FLAG_NOT_SELECTABLE));
|
||||
me->SetImmuneToPC(false);
|
||||
me->SetReactState(REACT_AGGRESSIVE);
|
||||
me->SetHover(true);
|
||||
me->SetDisableGravity(false);
|
||||
|
||||
events.SetPhase(PHASE_AERIAL_COMMAND_UNIT);
|
||||
events.ScheduleEvent(EVENT_SUMMON_JUNK_BOT, 5000, 0, PHASE_AERIAL_COMMAND_UNIT);
|
||||
|
||||
Reference in New Issue
Block a user