mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 15:41:30 +00:00
Removed a usage of Mob::DistNoRootNoZ and used ComparativeDistanceNoZ instead
This commit is contained in:
parent
3f83bc7771
commit
e5ee13bde0
@ -4908,7 +4908,7 @@ void command_manaburn(Client *c, const Seperator *sep)
|
||||
c->Message(0, "#Manaburn needs a target.");
|
||||
else {
|
||||
int cur_level=c->GetAA(MANA_BURN);//ManaBurn ID
|
||||
if (c->DistNoRootNoZ(*target) > 200)
|
||||
if (ComparativeDistance(c->GetPosition(), target->GetPosition()) > 200)
|
||||
c->Message(0,"You are too far away from your target.");
|
||||
else {
|
||||
if(cur_level == 1) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user