mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-27 04:12:40 +01:00
*Some update of spell target selection.
--HG-- branch : trunk
This commit is contained in:
@@ -113,7 +113,7 @@ struct TargetDistanceOrder : public std::binary_function<const Unit *, const Uni
|
||||
// functor for operator ">"
|
||||
bool operator()(const Unit * _Left, const Unit * _Right) const
|
||||
{
|
||||
return (me->GetDistanceSq(_Left) < me->GetDistanceSq(_Right));
|
||||
return (me->GetExactDistSq(_Left) < me->GetExactDistSq(_Right));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user