Core/Auras: Implemented ProcFlags2

Port From (https://github.com/TrinityCore/TrinityCore/commit/7ff411013c9f6394161dbfdc07b3f3827b1de17f)
This commit is contained in:
hondacrx
2022-05-07 15:05:30 -04:00
parent cf15d538cc
commit e1e8027159
4 changed files with 18 additions and 2 deletions
+2
View File
@@ -2891,6 +2891,8 @@ namespace Game.Spells
procAttacker = new ProcFlagsInit(IsPositive() ? ProcFlags.DoneSpellNoneDmgClassPos : ProcFlags.DoneSpellNoneDmgClassNeg);
}
procAttacker.Or(ProcFlags2.CastSuccessful);
ProcFlagsHit hitMask = m_hitMask;
if (!hitMask.HasAnyFlag(ProcFlagsHit.Critical))
hitMask |= ProcFlagsHit.Normal;
+2
View File
@@ -3853,6 +3853,8 @@ namespace Game.Spells
origin = new(m_caster.GetPosition());
unitTarget.KnockbackFrom(origin, speedxy, speedz);
Unit.ProcSkillsAndAuras(GetUnitCasterForEffectHandlers(), unitTarget, new ProcFlagsInit(ProcFlags.None), new ProcFlagsInit(ProcFlags.None, ProcFlags2.Knockback), ProcFlagsSpellType.MaskAll, ProcFlagsSpellPhase.Hit, ProcFlagsHit.None, null, null, null);
}
[SpellEffectHandler(SpellEffectName.LeapBack)]