mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 13:41:31 +00:00
removed usage of mob distnoroot and used ComparativeDistance instead
This commit is contained in:
parent
9f8dad894c
commit
e653a3943a
@ -26,6 +26,7 @@
|
||||
#include "string_ids.h"
|
||||
#include "worldserver.h"
|
||||
#include "zonedb.h"
|
||||
#include "position.h"
|
||||
|
||||
float Mob::GetActSpellRange(uint16 spell_id, float range, bool IsBard)
|
||||
{
|
||||
@ -720,7 +721,7 @@ void EntityList::AESpell(Mob *caster, Mob *center, uint16 spell_id, bool affect_
|
||||
continue;
|
||||
|
||||
if (spells[spell_id].targettype == ST_Ring) {
|
||||
dist_targ = curmob->DistNoRoot(caster->GetTargetRingX(), caster->GetTargetRingY(), caster->GetTargetRingZ());
|
||||
dist_targ = ComparativeDistance(curmob->GetPosition(), caster->GetTargetRingLocation());
|
||||
}
|
||||
else if (center) {
|
||||
dist_targ = center->DistNoRoot(*curmob);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user