mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/AI: updated SpellTargetSelector::operator() (#17824 follow-up)
(cherry picked from commit 805637cea1)
This commit is contained in:
@@ -287,7 +287,7 @@ bool SpellTargetSelector::operator()(Unit const* target) const
|
||||
|
||||
if (_caster->isMoving() && target->isMoving() && !_caster->IsWalking() && !target->IsWalking() &&
|
||||
(_spellInfo->RangeEntry->Flags & SPELL_RANGE_MELEE || target->GetTypeId() == TYPEID_PLAYER))
|
||||
rangeMod += 5.0f / 3.0f;
|
||||
rangeMod += 8.0f / 3.0f;
|
||||
}
|
||||
|
||||
maxRange += rangeMod;
|
||||
|
||||
Reference in New Issue
Block a user