mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-10 20:19:49 +01:00
Scripts/ToC: Fixed Twin Valkyr stucking in progress and added hover
Closes: #22755
Update: #20961
(cherry picked from commit 4c6f0eaa8d)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
UPDATE `creature_template` SET `HoverHeight`=6 WHERE `entry` IN (35347,35348,35349,35350,35351,35352);
|
||||
UPDATE `creature_template_addon` SET `bytes1`=0x2000000 WHERE `entry` IN (34496,34497,35347,35348,35349,35350,35351,35352);
|
||||
|
||||
DELETE FROM `creature_template_movement` WHERE `CreatureId` IN (34496,34497,35347,35348,35349,35350,35351,35352);
|
||||
INSERT INTO `creature_template_movement` (`CreatureId`,`Ground`,`Swim`,`Flight`,`Rooted`) VALUES
|
||||
(34496,2,0,0,0),
|
||||
(34497,2,0,0,0),
|
||||
(35347,2,0,0,0),
|
||||
(35348,2,0,0,0),
|
||||
(35349,2,0,0,0),
|
||||
(35350,2,0,0,0),
|
||||
(35351,2,0,0,0),
|
||||
(35352,2,0,0,0);
|
||||
@@ -182,11 +182,12 @@ struct boss_twin_baseAI : public BossAI
|
||||
{
|
||||
me->SetReactState(REACT_PASSIVE);
|
||||
me->ModifyAuraState(AuraState, true);
|
||||
/* Uncomment this once that they are floating above the ground
|
||||
me->SetLevitate(true);
|
||||
me->SetFlying(true); */
|
||||
|
||||
summons.DespawnAll();
|
||||
}
|
||||
|
||||
void JustAppeared() override
|
||||
{
|
||||
events.Reset();
|
||||
events.SetPhase(PHASE_EVENT);
|
||||
events.ScheduleEvent(EVENT_START_MOVE, 4s);
|
||||
}
|
||||
@@ -447,7 +448,6 @@ class boss_fjola : public CreatureScript
|
||||
void JustReachedHome() override
|
||||
{
|
||||
instance->DoUseDoorOrButton(instance->GetGuidData(DATA_MAIN_GATE));
|
||||
|
||||
boss_twin_baseAI::JustReachedHome();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user