Skip to content

Commit

Permalink
Icecrown: Change targeting on 3 spells that need trigger to be on caster
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Aug 1, 2024
1 parent ff3e515 commit b0d09a1
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sql/scriptdev2/spell.sql
Original file line number Diff line number Diff line change
Expand Up @@ -927,10 +927,13 @@ INSERT INTO spell_scripts(Id, ScriptName) VALUES
(59906,'spell_swift_hand_of_justice'),
(59915,'spell_discerning_eye_of_the_beast'),
(60211,'spell_cauterize'),
(60528,'spell_rod_of_siphoning'),
(60539,'spell_sapphiron_achievement_check'),
(60561,'spell_summon_dark_messenger_beam'),
(60772,'spell_increased_spell_damage_done_dummy'),
(60775,'spell_increased_spell_damage_done_dummy'),
(60779,'spell_increased_healing_done_dummy'),
(60831,'spell_alumeths_remains'),
(60929,'spell_loatheb_prewarn'),
(61071,'spell_vortex_aura'),
(61072,'spell_vortex_aura'),
Expand Down
33 changes: 33 additions & 0 deletions src/game/AI/ScriptDevAI/scripts/northrend/icecrown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1149,6 +1149,36 @@ struct DragAndDropSummonAldurtharSentry : public SpellScript
}
};

// 60528 - Rod of Siphoning
struct RodOfSiphoning : public AuraScript
{
void OnPeriodicTrigger(Aura* aura, PeriodicTriggerData& data) const override
{
data.caster = aura->GetCaster();
data.target = nullptr;
}
};

// 60561 - Summon Dark Messenger Beam
struct SummonDarkMessengerBeam : public AuraScript
{
void OnPeriodicTrigger(Aura* aura, PeriodicTriggerData& data) const override
{
data.caster = aura->GetCaster();
data.target = nullptr;
}
};

// 60831 - Alumeth's Remains
struct AlumethsRemains : public AuraScript
{
void OnPeriodicTrigger(Aura* aura, PeriodicTriggerData& data) const override
{
data.caster = aura->GetCaster();
data.target = nullptr;
}
};

void AddSC_icecrown()
{
Script* pNewScript = new Script;
Expand Down Expand Up @@ -1193,4 +1223,7 @@ void AddSC_icecrown()
RegisterSpellScript<RideVehicle_57346>("spell_ride_vehicle_57346");
RegisterSpellScript<SummonFrostWyrm>("spell_summon_frost_wyrm");
RegisterSpellScript<DragAndDropSummonAldurtharSentry>("spell_drag_and_drop_summon_aldurthar_sentry");
RegisterSpellScript<RodOfSiphoning>("spell_rod_of_siphoning");
RegisterSpellScript<SummonDarkMessengerBeam>("spell_summon_dark_messenger_beam");
RegisterSpellScript<AlumethsRemains>("spell_alumeths_remains");
}

0 comments on commit b0d09a1

Please sign in to comment.