mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-10 07:52:26 +00:00
Removed a usage of Mob::DistNoRootNoZ and used ComparativeDistanceNoZ instead
This commit is contained in:
parent
261feabb7d
commit
46eab011f1
@ -8740,7 +8740,7 @@ void Client::Handle_OP_LDoNPickLock(const EQApplicationPacket *app)
|
|||||||
{
|
{
|
||||||
if (HasSkill(SkillPickLock))
|
if (HasSkill(SkillPickLock))
|
||||||
{
|
{
|
||||||
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