mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead
This commit is contained in:
parent
55024a8615
commit
15bd08b365
@ -1197,7 +1197,7 @@ void Group::HealGroup(uint32 heal_amt, Mob* caster, float range)
|
||||
for(; gi < MAX_GROUP_MEMBERS; gi++)
|
||||
{
|
||||
if(members[gi]){
|
||||
distance = caster->DistNoRoot(*members[gi]);
|
||||
distance = ComparativeDistance(caster->GetPosition(), members[gi]->GetPosition());
|
||||
if(distance <= range2){
|
||||
numMem += 1;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user