diff options
| author | Shauren <shauren.trinity@gmail.com> | 2025-01-01 20:32:23 +0100 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2025-01-01 20:32:23 +0100 |
| commit | 887fcbc02b4ee81a95ec764f158b4809890556f4 (patch) | |
| tree | c8e98a90d60de5a0c4394966ab96308a96588e17 /src/server/scripts/Kalimdor | |
| parent | 54a83b4b689b7d2bbddb91fc79319dd806da8cc0 (diff) | |
Scripts/Spells: Removed unneccessary hacks - reagent consumption by triggered spells fixed in 54a83b4b689b7d2bbddb91fc79319dd806da8cc0
Diffstat (limited to 'src/server/scripts/Kalimdor')
| -rw-r--r-- | src/server/scripts/Kalimdor/zone_silithus.cpp | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/src/server/scripts/Kalimdor/zone_silithus.cpp b/src/server/scripts/Kalimdor/zone_silithus.cpp index e04e32428e6..50938720b62 100644 --- a/src/server/scripts/Kalimdor/zone_silithus.cpp +++ b/src/server/scripts/Kalimdor/zone_silithus.cpp @@ -44,8 +44,6 @@ EndContentData */ #include "Player.h" #include "ScriptedCreature.h" #include "ScriptedGossip.h" -#include "SpellAuraEffects.h" -#include "SpellScript.h" #include "TemporarySummon.h" /*##### @@ -1430,44 +1428,6 @@ class go_wind_stone : public GameObjectScript } }; -// 24745 - Summon Templar, Trigger -// 24747 - Summon Templar Fire, Trigger -// 24757 - Summon Templar Air, Trigger -// 24759 - Summon Templar Earth, Trigger -// 24761 - Summon Templar Water, Trigger -// 24762 - Summon Duke, Trigger -// 24766 - Summon Duke Fire, Trigger -// 24769 - Summon Duke Air, Trigger -// 24771 - Summon Duke Earth, Trigger -// 24773 - Summon Duke Water, Trigger -// 24785 - Summon Royal, Trigger -// 24787 - Summon Royal Fire, Trigger -// 24791 - Summon Royal Air, Trigger -// 24792 - Summon Royal Earth, Trigger -// 24793 - Summon Royal Water, Trigger -// 46595 - Summon Ice Stone Lieutenant, Trigger -class spell_silithus_summon_cultist_periodic : public AuraScript -{ - bool Validate(SpellInfo const* spellInfo) override - { - return ValidateSpellEffect({ { spellInfo->Id, EFFECT_0 } }) && ValidateSpellInfo({ spellInfo->GetEffect(EFFECT_0).TriggerSpell }); - } - - void PeriodicTick(AuraEffect const* aurEff) - { - PreventDefaultAction(); - - // All these spells trigger a spell that requires reagents; if the - // triggered spell is cast as "triggered", reagents are not consumed - GetTarget()->CastSpell(nullptr, aurEff->GetSpellEffectInfo().TriggerSpell, CastSpellExtraArgs(TRIGGERED_FULL_MASK & ~TRIGGERED_IGNORE_REAGENT_COST).SetTriggeringAura(aurEff)); - } - - void Register() override - { - OnEffectPeriodic += AuraEffectPeriodicFn(spell_silithus_summon_cultist_periodic::PeriodicTick, EFFECT_0, SPELL_AURA_PERIODIC_TRIGGER_SPELL); - } -}; - void AddSC_silithus() { new go_crystalline_tear(); @@ -1475,5 +1435,4 @@ void AddSC_silithus() new npc_anachronos_the_ancient(); new npc_qiraj_war_spawn(); new go_wind_stone(); - RegisterSpellScript(spell_silithus_summon_cultist_periodic); } |
