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
c340fc9c39
commit
261feabb7d
@ -8707,7 +8707,7 @@ void Client::Handle_OP_LDoNDisarmTraps(const EQApplicationPacket *app)
|
|||||||
{
|
{
|
||||||
if (HasSkill(SkillDisarmTraps))
|
if (HasSkill(SkillDisarmTraps))
|
||||||
{
|
{
|
||||||
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