From fc9348ef22714550b9c6566455f20e8bfb3498dc Mon Sep 17 00:00:00 2001
From: Grz3s <Grz3s@users.noreply.github.com>
Date: Mon, 29 Jul 2024 23:17:47 +0200
Subject: [PATCH] Spell: Z cord corrected for 4328

---
 sql/scriptdev2/spell.sql                               |  1 +
 src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp | 10 ++++++++++
 2 files changed, 11 insertions(+)

diff --git a/sql/scriptdev2/spell.sql b/sql/scriptdev2/spell.sql
index 147d0e5b7e2..9c6a38101ad 100644
--- a/sql/scriptdev2/spell.sql
+++ b/sql/scriptdev2/spell.sql
@@ -632,6 +632,7 @@ INSERT INTO spell_scripts(Id, ScriptName) VALUES
 
 -- Wotlk
 INSERT INTO spell_scripts(Id, ScriptName) VALUES
+(4328,'spell_drag_and_drop_summon_aldurthar_sentry'),
 (16836,'spell_brambles'),
 (16839,'spell_brambles'),
 (16840,'spell_brambles'),
diff --git a/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp b/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp
index e55036c3aa3..3ee26cce596 100644
--- a/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp
+++ b/src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp
@@ -1140,6 +1140,15 @@ struct SummonFrostWyrm : public SpellScript
     }
 };
 
+// 4328 - Drag and Drop: Summon Aldur'thar Sentry
+struct DragAndDropSummonAldurtharSentry : public SpellScript
+{
+    void OnDestTarget(Spell* spell) const override
+    {
+        spell->m_targets.m_destPos.z += 20.f;
+    }
+};
+
 void AddSC_icecrown()
 {
     Script* pNewScript = new Script;
@@ -1183,4 +1192,5 @@ void AddSC_icecrown()
     RegisterSpellScript<FitfulDream>("spell_fitful_dream");
     RegisterSpellScript<RideVehicle_57346>("spell_ride_vehicle_57346");
     RegisterSpellScript<SummonFrostWyrm>("spell_summon_frost_wyrm");
+    RegisterSpellScript<DragAndDropSummonAldurtharSentry>("spell_drag_and_drop_summon_aldurthar_sentry");
 }