mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
removed usage of mob distnoroot and used ComparativeDistance instead
This commit is contained in:
+2
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user