mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 16:41:29 +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.");
|
c->Message(0, "#Manaburn needs a target.");
|
||||||
else {
|
else {
|
||||||
int cur_level=c->GetAA(MANA_BURN);//ManaBurn ID
|
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.");
|
c->Message(0,"You are too far away from your target.");
|
||||||
else {
|
else {
|
||||||
if(cur_level == 1) {
|
if(cur_level == 1) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user