mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 10:05:32 +01:00
Scripts/Misc: corrected movement template data for Battered Red Drakes in preparation for anim tier handlings
This commit is contained in:
11
sql/updates/world/4.3.4/2020_06_02_00_world.sql
Normal file
11
sql/updates/world/4.3.4/2020_06_02_00_world.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
UPDATE `creature_template` SET `flags_extra`= `flags_extra` | 512 WHERE `entry` IN (39294, 44828, 44829, 44826, 44653);
|
||||
UPDATE `creature_template_movement` SET `Flight`= 0, `Ground`= 1 WHERE `CreatureId` IN (39294, 44828, 44829, 44826, 44653);
|
||||
|
||||
UPDATE `creature_template` SET `flags_extra`= `flags_extra` | 512 WHERE `entry` IN (46221, 46218, 46212, 46215);
|
||||
UPDATE `creature_template_movement` SET `Flight`= 0, `Ground`= 1 WHERE `CreatureId` IN (46221, 46218, 46212, 46215);
|
||||
|
||||
UPDATE `creature_template` SET `flags_extra`= `flags_extra` | 512 WHERE `entry` IN (46222, 46219, 46213, 46216);
|
||||
UPDATE `creature_template_movement` SET `Flight`= 0, `Ground`= 1 WHERE `CreatureId` IN (46222, 46219, 46213, 46216);
|
||||
|
||||
UPDATE `creature_template` SET `flags_extra`= `flags_extra` | 512 WHERE `entry` IN (46223, 46220, 46214, 46217);
|
||||
UPDATE `creature_template_movement` SET `Flight`= 0, `Ground`= 1 WHERE `CreatureId` IN (46223, 46220, 46214, 46217);
|
||||
@@ -545,9 +545,7 @@ class npc_halfus_enslaved_dragon : public CreatureScript
|
||||
if (me->GetEntry() != NPC_ORPHANED_EMERALD_WELP)
|
||||
{
|
||||
me->SetDisableGravity(true);
|
||||
me->SendSetPlayHoverAnim(true);
|
||||
me->AddUnitMovementFlag(MOVEMENTFLAG_HOVER);
|
||||
me->SetByteFlag(UNIT_FIELD_BYTES_1, 3, UNIT_BYTE1_FLAG_ALWAYS_STAND | UNIT_BYTE1_FLAG_HOVER);
|
||||
me->SetHover(true);
|
||||
}
|
||||
|
||||
switch (me->GetEntry())
|
||||
|
||||
@@ -184,6 +184,7 @@ struct npc_grim_batol_battered_red_drake: public VehicleAI
|
||||
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
|
||||
me->RemoveAurasDueToSpell(SPELL_NET);
|
||||
DoCastSelf(SPELL_BOMBING_RUN_PROTECTION_TRIGGER);
|
||||
me->SetDisableGravity(true); // Todo: do not update the anim tier here
|
||||
summon->CastSpell(summon, SPELL_NET_SCRIPT);
|
||||
summon->DespawnOrUnsummon(3s);
|
||||
}
|
||||
@@ -216,6 +217,7 @@ struct npc_grim_batol_battered_red_drake: public VehicleAI
|
||||
_instance->SetData(DATA_START_BATTERED_RED_DRAKE_DESPAWN_EVENT, IN_PROGRESS);
|
||||
me->SetControlled(true, UNIT_STATE_ROOT);
|
||||
me->PlayOneShotAnimKitId(ANIM_KIT_ID_LIFTOFF);
|
||||
// Todo: set anim tier to fly here
|
||||
player->SetMover(me);
|
||||
_playerGuid = player->GetGUID();
|
||||
|
||||
@@ -243,9 +245,6 @@ struct npc_grim_batol_battered_red_drake: public VehicleAI
|
||||
case EVENT_SET_HOVERING:
|
||||
if (Player* player = ObjectAccessor::FindConnectedPlayer(_playerGuid))
|
||||
DoCast(player, SPELL_GEAR_SCALING_TRIGGER, true);
|
||||
me->SendSetPlayHoverAnim(true);
|
||||
me->AddUnitMovementFlag(MOVEMENTFLAG_HOVER);
|
||||
me->SetByteFlag(UNIT_FIELD_BYTES_1, 3, UNIT_BYTE1_FLAG_HOVER);
|
||||
break;
|
||||
case EVENT_PREPARE_BOMBARDMENT:
|
||||
if (Player* player = ObjectAccessor::FindConnectedPlayer(_playerGuid))
|
||||
|
||||
Reference in New Issue
Block a user