mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-21 12:52:25 +00:00
Removed a usage of Mob::DistNoRootNoZ and used ComparativeDistanceNoZ instead
This commit is contained in:
parent
46eab011f1
commit
39e059e256
@ -8759,7 +8759,7 @@ void Client::Handle_OP_LDoNSenseTraps(const EQApplicationPacket *app)
|
|||||||
{
|
{
|
||||||
if (HasSkill(SkillSenseTraps))
|
if (HasSkill(SkillSenseTraps))
|
||||||
{
|
{
|
||||||
if (DistNoRootNoZ(*target) > RuleI(Adventure, LDoNTrapDistanceUse))
|
if (ComparativeDistanceNoZ(m_Position, target->GetPosition()) > RuleI(Adventure, LDoNTrapDistanceUse))
|
||||||
{
|
{
|
||||||
Message(13, "%s is too far away.", target->GetCleanName());
|
Message(13, "%s is too far away.", target->GetCleanName());
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user