diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index 53f87f9ca99d55..f8b51eab525e70 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -11955,6 +11955,11 @@ float Unit::GetSpellMinRangeForTarget(Unit const* target, SpellInfo const* spell return spellInfo->GetMinRange(); } + if (!target) + { + return spellInfo->GetMinRange(true); + } + return spellInfo->GetMinRange(!IsHostileTo(target)); }