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:
Keader
2018-11-08 11:14:46 -03:00
committed by Shauren
parent 1015f30704
commit 77ed0f2399
2 changed files with 18 additions and 5 deletions

View File

@@ -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);

View File

@@ -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();
}