mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-16 12:52:25 +00:00
Removed a usage of Mob::Dist and used Distance instead
This commit is contained in:
parent
2eaeb38138
commit
77badffa29
@ -3025,7 +3025,7 @@ void Client::Handle_OP_Assist(const EQApplicationPacket *app)
|
||||
if (assistee->GetTarget()) {
|
||||
Mob *new_target = assistee->GetTarget();
|
||||
if (new_target && (GetGM() ||
|
||||
Dist(*assistee) <= TARGETING_RANGE)) {
|
||||
Distance(static_cast<xyz_location>(m_Position), static_cast<xyz_location>(assistee->GetPosition())) <= TARGETING_RANGE)) {
|
||||
SetAssistExemption(true);
|
||||
eid->entity_id = new_target->GetID();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user