Core/Spells: Remove spell range increase when caster or target move backwards
Port From (https://github.com/TrinityCore/TrinityCore/commit/f19e1a271618a35515512ce2a64330f21133616c)
This commit is contained in:
@@ -4275,7 +4275,7 @@ namespace Game.Spells
|
||||
modOwner.ApplySpellMod(_spellInfo, SpellModOp.Radius, ref radius, spell);
|
||||
|
||||
if (!_spellInfo.HasAttribute(SpellAttr9.NoMovementRadiusBonus))
|
||||
if (casterUnit != null && casterUnit.IsMoving() && !casterUnit.IsWalking())
|
||||
if (casterUnit != null && Spell.CanIncreaseRangeByMovement(casterUnit))
|
||||
radius += 2.0f;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user