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:
parent
803f1c76ff
commit
00d4f68e36
2 changed files with 5 additions and 1 deletions
|
|
@ -4026,7 +4026,7 @@ void Spell::_cast(bool skipCheck)
|
|||
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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1556,6 +1556,10 @@ class spell_mage_missile_barrage_proc : public AuraScript
|
|||
{
|
||||
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
|
||||
if (AuraEffect const* aurEff = caster->GetAuraEffect(SPELL_MAGE_T8_4P_BONUS, EFFECT_0))
|
||||
if (roll_chance_i(aurEff->GetAmount()))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue