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:
Hondacrx
2024-08-31 17:44:12 -04:00
parent a964b9c7f8
commit fa10c00734
2 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -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;
}