refactor(Core/Spells): Pass nullptr as victim for PROC_SPELL_PHASE_CAST (#25007)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com> Co-authored-by: ariel- <ariel-@users.noreply.github.com>
This commit is contained in:
@@ -4026,7 +4026,7 @@ void Spell::_cast(bool skipCheck)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
Unit::ProcSkillsAndAuras(m_originalCaster, m_originalCaster, procAttacker, PROC_FLAG_NONE, hitMask, 1, BASE_ATTACK, m_spellInfo, m_triggeredByAuraSpell.spellInfo,
|
Unit::ProcSkillsAndAuras(m_originalCaster, nullptr, procAttacker, PROC_FLAG_NONE, hitMask, 1, BASE_ATTACK, m_spellInfo, m_triggeredByAuraSpell.spellInfo,
|
||||||
m_triggeredByAuraSpell.effectIndex, this, nullptr, nullptr, PROC_SPELL_PHASE_CAST);
|
m_triggeredByAuraSpell.effectIndex, this, nullptr, nullptr, PROC_SPELL_PHASE_CAST);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1556,6 +1556,10 @@ class spell_mage_missile_barrage_proc : public AuraScript
|
|||||||
{
|
{
|
||||||
Unit* caster = eventInfo.GetActor();
|
Unit* caster = eventInfo.GetActor();
|
||||||
|
|
||||||
|
// Prevent double proc for Arcane Missiles
|
||||||
|
if (caster == eventInfo.GetActionTarget())
|
||||||
|
return false;
|
||||||
|
|
||||||
// T8 4P bonus: chance to not consume the proc
|
// T8 4P bonus: chance to not consume the proc
|
||||||
if (AuraEffect const* aurEff = caster->GetAuraEffect(SPELL_MAGE_T8_4P_BONUS, EFFECT_0))
|
if (AuraEffect const* aurEff = caster->GetAuraEffect(SPELL_MAGE_T8_4P_BONUS, EFFECT_0))
|
||||||
if (roll_chance_i(aurEff->GetAmount()))
|
if (roll_chance_i(aurEff->GetAmount()))
|
||||||
|
|||||||
Reference in New Issue
Block a user