mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 17:51:28 +00:00
Removed a usage of Mob::DistNoRootNoZ and used ComparativeDistanceNoZ instead
This commit is contained in:
parent
9c3b66df93
commit
e728280c58
@ -10355,7 +10355,7 @@ void command_picklock(Client *c, const Seperator *sep)
|
||||
{
|
||||
if(c->HasSkill(SkillPickLock))
|
||||
{
|
||||
if(c->DistNoRootNoZ(*target) > RuleI(Adventure, LDoNTrapDistanceUse))
|
||||
if(ComparativeDistanceNoZ(c->GetPosition(), target->GetPosition()) > RuleI(Adventure, LDoNTrapDistanceUse))
|
||||
{
|
||||
c->Message(13, "%s is too far away.", target->GetCleanName());
|
||||
return;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user