mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
Core/Spells: fixed mage Nether Vortex getting applied only when Arcane Blast hits
This commit is contained in:
@@ -1047,13 +1047,18 @@ class spell_mage_nether_vortex : public SpellScriptLoader
|
||||
|
||||
bool Validate(SpellInfo const* /*spellInfo*/) override
|
||||
{
|
||||
if (!sSpellMgr->GetSpellInfo(SPELL_MAGE_SLOW))
|
||||
return false;
|
||||
return true;
|
||||
return ValidateSpellInfo(
|
||||
{
|
||||
SPELL_MAGE_SLOW,
|
||||
SPELL_MAGE_ARCANE_BLAST
|
||||
});
|
||||
}
|
||||
|
||||
bool DoCheck(ProcEventInfo& eventInfo)
|
||||
{
|
||||
if (eventInfo.GetProcSpell()->GetSpellInfo()->Id != SPELL_MAGE_ARCANE_BLAST)
|
||||
return false;
|
||||
|
||||
if (Aura* aura = eventInfo.GetProcTarget()->GetAura(SPELL_MAGE_SLOW))
|
||||
if (aura->GetCasterGUID() != GetTarget()->GetGUID())
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user