mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 02:11:30 +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->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());
|
c->Message(13, "%s is too far away.", target->GetCleanName());
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user