Core/Auras: Proc flag updates
Port From (https://github.com/TrinityCore/TrinityCore/commit/02979daf761a5122efa7b8fa3e70509ecd69789e)
This commit is contained in:
@@ -1498,7 +1498,7 @@ namespace Scripts.Spells.Items
|
||||
|
||||
void HandleProc(AuraEffect aurEff, ProcEventInfo eventInfo)
|
||||
{
|
||||
if (eventInfo.GetTypeMask().HasFlag(ProcFlags.DoneRangedAutoAttack | ProcFlags.DoneSpellRangedDmgClass))
|
||||
if (eventInfo.GetTypeMask().HasFlag(ProcFlags.DealRangedAttack | ProcFlags.DealRangedAbility))
|
||||
{
|
||||
// in that case, do not cast heal spell
|
||||
PreventDefaultAction();
|
||||
@@ -3191,10 +3191,10 @@ namespace Scripts.Spells.Items
|
||||
Unit caster = eventInfo.GetActor();
|
||||
Unit target = eventInfo.GetProcTarget();
|
||||
|
||||
if (eventInfo.GetTypeMask().HasFlag(ProcFlags.DoneSpellMagicDmgClassPos))
|
||||
if (eventInfo.GetTypeMask().HasFlag(ProcFlags.DealHelpfulSpell))
|
||||
caster.CastSpell(target, _healProcSpellId, new CastSpellExtraArgs(aurEff));
|
||||
|
||||
if (eventInfo.GetTypeMask().HasFlag(ProcFlags.DoneSpellMagicDmgClassNeg))
|
||||
if (eventInfo.GetTypeMask().HasFlag(ProcFlags.DealHarmfulSpell))
|
||||
caster.CastSpell(target, _damageProcSpellId, new CastSpellExtraArgs(aurEff));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user