mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 18:40:28 +00:00
fix(DB/Quest): Improve The Summoning Chamber (#16588)
* fix(DB/quest): The Summoning Chamber * update * improvement * update * update * Update rev_1687180111436507500.sql * improvement
This commit is contained in:
@@ -1811,6 +1811,32 @@ class spell_calling_korkron_or_wildhammer : public SpellScript
|
||||
}
|
||||
};
|
||||
|
||||
enum InfernalOversoul
|
||||
{
|
||||
NPC_INFERNAL_OVERSOUL = 21735,
|
||||
SPELL_DISRUPT_SUMMONING_RITUAL = 37285
|
||||
};
|
||||
|
||||
class spell_disrupt_summoning_ritual : public SpellScript
|
||||
{
|
||||
public:
|
||||
PrepareSpellScript(spell_disrupt_summoning_ritual);
|
||||
|
||||
SpellCastResult CheckRequirement()
|
||||
{
|
||||
if (Unit* caster = GetCaster())
|
||||
if (Creature* infernal = caster->FindNearestCreature(NPC_INFERNAL_OVERSOUL, 100.0f))
|
||||
if (!infernal->HasAura(SPELL_DISRUPT_SUMMONING_RITUAL))
|
||||
return SPELL_FAILED_CASTER_AURASTATE;
|
||||
return SPELL_CAST_OK;
|
||||
}
|
||||
|
||||
void Register() override
|
||||
{
|
||||
OnCheckCast += SpellCheckCastFn(spell_disrupt_summoning_ritual::CheckRequirement);
|
||||
}
|
||||
};
|
||||
|
||||
void AddSC_shadowmoon_valley()
|
||||
{
|
||||
// Ours
|
||||
@@ -1834,4 +1860,5 @@ void AddSC_shadowmoon_valley()
|
||||
new npc_shadowmoon_tuber_node();
|
||||
RegisterCreatureAI(npc_korkron_or_wildhammer);
|
||||
RegisterSpellScript(spell_calling_korkron_or_wildhammer);
|
||||
RegisterSpellScript(spell_disrupt_summoning_ritual);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user