Skip to content

Commit

Permalink
Spell: Z cord corrected for 4328
Browse files Browse the repository at this point in the history
  • Loading branch information
Grz3s committed Jul 29, 2024
1 parent b1f5856 commit fc9348e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions sql/scriptdev2/spell.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
10 changes: 10 additions & 0 deletions src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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");
}

0 comments on commit fc9348e

Please sign in to comment.