mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-26 23:57:17 +00:00
Removed a usage of Mob::DistNoRootNoZ and used ComparativeDistanceNoZ instead
This commit is contained in:
+1
-1
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user