mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 17:51:28 +00:00
Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead
This commit is contained in:
parent
1303a297c0
commit
78eb852ed3
@ -2540,7 +2540,7 @@ bool Client::BindWound(Mob* bindmob, bool start, bool fail){
|
|||||||
}
|
}
|
||||||
|
|
||||||
else {
|
else {
|
||||||
if (!GetFeigned() && (bindmob->DistNoRoot(*this) <= 400)) {
|
if (!GetFeigned() && (ComparativeDistance(bindmob->GetPosition(), m_Position) <= 400)) {
|
||||||
// send bindmob bind done
|
// send bindmob bind done
|
||||||
if(!bindmob->IsAIControlled() && bindmob != this ) {
|
if(!bindmob->IsAIControlled() && bindmob != this ) {
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user