mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 18:51:29 +00:00
Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead
This commit is contained in:
parent
9bd4007fd6
commit
dd52259dcf
@ -602,7 +602,7 @@ void Raid::BalanceHP(int32 penalty, uint32 gid, float range, Mob* caster, int32
|
|||||||
if(members[gi].member){
|
if(members[gi].member){
|
||||||
if(members[gi].GroupNumber == gid)
|
if(members[gi].GroupNumber == gid)
|
||||||
{
|
{
|
||||||
distance = caster->DistNoRoot(*members[gi].member);
|
distance = ComparativeDistance(caster->GetPosition(), members[gi].member->GetPosition());
|
||||||
if(distance <= range2){
|
if(distance <= range2){
|
||||||
if((members[gi].member->GetMaxHP() - dmgtaken) < 1){//this way the ability will never kill someone
|
if((members[gi].member->GetMaxHP() - dmgtaken) < 1){//this way the ability will never kill someone
|
||||||
members[gi].member->SetHP(1); //but it will come darn close
|
members[gi].member->SetHP(1); //but it will come darn close
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user