mirror of
https://github.com/EQEmu/Server.git
synced 2026-10-11 00:02:12 +00:00
Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead
This commit is contained in:
1 parent
fa50ab8a18
commit
a9c0920bc6
1 file changed
+1
-1
+1
-1
@@ -1306,7 +1306,7 @@ void Group::BalanceMana(int32 penalty, float range, Mob* caster, int32 limit)
|
||||
for(gi = 0; gi < MAX_GROUP_MEMBERS; gi++)
|
||||
{
|
||||
if(members[gi]){
|
||||
distance = caster->DistNoRoot(*members[gi]);
|
||||
distance = ComparativeDistance(caster->GetPosition(), members[gi]->GetPosition());
|
||||
if(distance <= range2){
|
||||
if((members[gi]->GetMaxMana() - manataken) < 1){
|
||||
members[gi]->SetMana(1);
|
||||
|
||||
Reference in new issue
Block a user