summaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
authorJelle Meeus <sogladev@gmail.com>2025-09-08 21:15:45 -0700
committerGitHub <noreply@github.com>2025-09-09 01:15:45 -0300
commit9ba155c08997483cdef3f46b355ab36167c1cb65 (patch)
treea9e77a198b016798b35c5e459cc2081a711c1065 /src/server
parent4d333518bb69fb15fee63b5e99a761d4d1185147 (diff)
fix(Scripts/Northrend): Scourge Plague Spreader summons ghouls mid-air (#22845)
Diffstat (limited to 'src/server')
-rw-r--r--src/server/scripts/Northrend/zone_borean_tundra.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/server/scripts/Northrend/zone_borean_tundra.cpp b/src/server/scripts/Northrend/zone_borean_tundra.cpp
index 448f1aaca5..88013c47cb 100644
--- a/src/server/scripts/Northrend/zone_borean_tundra.cpp
+++ b/src/server/scripts/Northrend/zone_borean_tundra.cpp
@@ -2124,6 +2124,25 @@ public:
}
};
+// 45612 - Necropolis Beam
+class spell_necropolis_beam: public SpellScript
+{
+ PrepareSpellScript(spell_necropolis_beam);
+
+ void SetDest(SpellDestination& dest)
+ {
+ Unit* caster = GetCaster();
+ float floorZ = caster->GetMapHeight(caster->GetPositionX(), caster->GetPositionY(), caster->GetPositionZ());
+ if (floorZ > INVALID_HEIGHT)
+ dest._position.m_positionZ = floorZ;
+ }
+
+ void Register() override
+ {
+ OnDestinationTargetSelect += SpellDestinationTargetSelectFn(spell_necropolis_beam::SetDest, EFFECT_0, TARGET_DEST_CASTER);
+ }
+};
+
void AddSC_borean_tundra()
{
RegisterSpellScript(spell_q11919_q11940_drake_hunt_aura);
@@ -2148,4 +2167,5 @@ void AddSC_borean_tundra()
RegisterSpellScript(spell_q11719_bloodspore_ruination_45997);
new npc_bloodmage_laurith();
RegisterCreatureAI(npc_jenny);
+ RegisterSpellScript(spell_necropolis_beam);
}