fix(DB/Creature): Improvements to Shoot 'em Up Daily (#26807)

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Rocco Silipo <[email protected]>
This commit is contained in:
Gultask
2026-08-11 10:45:04 -03:00
committed by GitHub
co-authored by coderabbitai[bot] Rocco Silipo
parent aa251876a8
commit c92762b799
2 changed files with 13 additions and 2 deletions
@@ -0,0 +1,8 @@
--
DELETE FROM `smart_scripts` WHERE (`entryorguid` = 30330) AND (`source_type` = 0) AND (`id` IN (2));
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `event_param6`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(30330, 0, 2, 0, 6, 0, 100, 0, 0, 0, 0, 0, 0, 0, 41, 10000, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Jotunheim Proto-Drake - On Just Died - Despawn In 10s');
UPDATE `vehicle_template_accessory` SET `minion` = 1, `summontimer` = 10000 WHERE `entry` = 30330;
UPDATE `creature_template` SET `unit_flags` = 33587200 WHERE (`entry` = 30332);
+5 -2
View File
@@ -15831,8 +15831,11 @@ void Unit::_ExitVehicle(Position const* exitPosition)
KnockbackFrom(pos.GetPositionX(), pos.GetPositionY(), 10.0f, 20.0f); KnockbackFrom(pos.GetPositionX(), pos.GetPositionY(), 10.0f, 20.0f);
} }
// xinef: move fall, should we support all creatures that exited vehicle in air? Currently Quest Drag and Drop only, Air Assault quest // xinef: move fall for air-exit quest vehicles:
if (IsCreature() && !CanFly() && vehicleInfo && (vehicleInfo->m_ID == 113 || vehicleInfo->m_ID == 8 || vehicleInfo->m_ID == 290 || vehicleInfo->m_ID == 298)) // Quest Drag and Drop, Air Assault, and Shoot 'em Up.
if (IsCreature() && !CanFly() && vehicleInfo &&
(vehicleInfo->m_ID == 8 || vehicleInfo->m_ID == 113 || vehicleInfo->m_ID == 228 ||
vehicleInfo->m_ID == 290 || vehicleInfo->m_ID == 298))
{ {
GetMotionMaster()->MoveFall(); GetMotionMaster()->MoveFall();
} }