Scripts/Spells: Fixed remaining spells with SPELL_ATTR3_CAN_PROC_FROM_PROCS attribute

This commit is contained in:
Shauren
2023-06-27 22:22:16 +02:00
parent acb7e72470
commit 07d6eb3a57
15 changed files with 1518 additions and 18 deletions
@@ -4894,6 +4894,31 @@ class spell_gen_impatient_mind : public AuraScript
}
};
// 209352 - Boost 2.0 [Paladin+Priest] - Watch for Shield
class spell_gen_boost_2_0_paladin_priest_watch_for_shield : public AuraScript
{
PrepareAuraScript(spell_gen_boost_2_0_paladin_priest_watch_for_shield);
static constexpr uint32 SPELL_POWER_WORD_SHIELD = 17;
static constexpr uint32 SPELL_DIVINE_SHIELD = 642;
bool Validate(SpellInfo const* /*spellInfo*/) override
{
return ValidateSpellInfo({ SPELL_POWER_WORD_SHIELD, SPELL_DIVINE_SHIELD });
}
bool CheckProc(AuraEffect const* /*aurEff*/, ProcEventInfo& procInfo)
{
SpellInfo const* spellInfo = procInfo.GetSpellInfo();
return spellInfo && (spellInfo->Id == SPELL_POWER_WORD_SHIELD || spellInfo->Id == SPELL_DIVINE_SHIELD);
}
void Register() override
{
DoCheckEffectProc += AuraCheckEffectProcFn(spell_gen_boost_2_0_paladin_priest_watch_for_shield::CheckProc, EFFECT_0, SPELL_AURA_PROC_TRIGGER_SPELL);
}
};
// 269083 - Enlisted
// 282559 - Enlisted
class spell_gen_war_mode_enlisted : public AuraScript
@@ -5680,6 +5705,7 @@ void AddSC_generic_spell_scripts()
RegisterSpellScript(spell_gen_azgalor_rain_of_fire_hellfire_citadel);
RegisterSpellScript(spell_gen_face_rage);
RegisterSpellScript(spell_gen_impatient_mind);
RegisterSpellScript(spell_gen_boost_2_0_paladin_priest_watch_for_shield);
RegisterSpellScript(spell_gen_war_mode_enlisted);
RegisterSpellScript(spell_defender_of_azeroth_death_gate_selector);
RegisterSpellScript(spell_defender_of_azeroth_speak_with_mograine);