aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/scripts')
-rw-r--r--src/server/scripts/Spells/spell_priest.cpp52
1 files changed, 0 insertions, 52 deletions
diff --git a/src/server/scripts/Spells/spell_priest.cpp b/src/server/scripts/Spells/spell_priest.cpp
index 883d92321c9..2e38dd5ebbb 100644
--- a/src/server/scripts/Spells/spell_priest.cpp
+++ b/src/server/scripts/Spells/spell_priest.cpp
@@ -271,57 +271,6 @@ struct areatrigger_pri_angelic_feather : AreaTriggerAI
}
};
-// 391387 - Answered Prayers
-class spell_pri_answered_prayers : public AuraScript
-{
- bool Validate(SpellInfo const* spellInfo) override
- {
- return ValidateSpellInfo({ SPELL_PRIEST_ANSWERED_PRAYERS, SPELL_PRIEST_APOTHEOSIS })
- && ValidateSpellEffect({ { spellInfo->Id, EFFECT_1 } });
- }
-
- void HandleOnProc(AuraEffect const* aurEff, ProcEventInfo& eventInfo) const
- {
- Milliseconds extraDuration = 0ms;
- if (AuraEffect const* durationEffect = GetEffect(EFFECT_1))
- extraDuration = Seconds(durationEffect->GetAmount());
-
- Unit* target = eventInfo.GetActor();
-
- Aura* answeredPrayers = target->GetAura(SPELL_PRIEST_ANSWERED_PRAYERS);
-
- // Note: if caster has no aura, we must cast it first.
- if (!answeredPrayers)
- target->CastSpell(target, SPELL_PRIEST_ANSWERED_PRAYERS, TRIGGERED_IGNORE_CAST_IN_PROGRESS);
- else
- {
- // Note: there's no BaseValue dummy that we can use as reference, so we hardcode the increasing stack value.
- answeredPrayers->ModStackAmount(1);
-
- // Note: if current stacks match max. stacks, trigger Apotheosis.
- if (answeredPrayers->GetStackAmount() != aurEff->GetAmount())
- return;
-
- answeredPrayers->Remove();
-
- if (Aura* apotheosis = GetTarget()->GetAura(SPELL_PRIEST_APOTHEOSIS))
- {
- apotheosis->SetDuration(apotheosis->GetDuration() + extraDuration.count());
- apotheosis->SetMaxDuration(apotheosis->GetMaxDuration() + extraDuration.count());
- }
- else
- target->CastSpell(target, SPELL_PRIEST_APOTHEOSIS,
- CastSpellExtraArgs(TRIGGERED_FULL_MASK & ~TRIGGERED_CAST_DIRECTLY)
- .AddSpellMod(SPELLVALUE_DURATION, extraDuration.count()));
- }
- }
-
- void Register() override
- {
- OnEffectProc += AuraEffectProcFn(spell_pri_answered_prayers::HandleOnProc, EFFECT_0, SPELL_AURA_ADD_FLAT_MODIFIER_BY_SPELL_LABEL);
- }
-};
-
// 26169 - Oracle Healing Bonus
class spell_pri_aq_3p_bonus : public AuraScript
{
@@ -2793,7 +2742,6 @@ void AddSC_priest_spell_scripts()
RegisterSpellScript(spell_pri_angelic_feather_trigger);
RegisterAreaTriggerAI(areatrigger_pri_angelic_feather);
RegisterSpellScript(spell_pri_abyssal_reverie);
- RegisterSpellScript(spell_pri_answered_prayers);
RegisterSpellScript(spell_pri_aq_3p_bonus);
RegisterSpellScript(spell_pri_atonement);
RegisterSpellScript(spell_pri_atonement_effect);