fix (Core/Spells) partially revert #19529 (#19703)

Update Spell.cpp
This commit is contained in:
Tereneckla
2024-08-22 23:36:39 +00:00
committed by GitHub
parent c0b6eae0e1
commit 3419f0246b

View File

@@ -9035,7 +9035,7 @@ namespace Acore
if (!target->ToGameObject()->IsInRange(_position->GetPositionX(), _position->GetPositionY(), _position->GetPositionZ(), _range))
return false;
}
else if (!target->IsInDist(_position, _range))
else if (!target->IsWithinDist3d(_position, _range))
return false;
else if (target->GetTypeId() == TYPEID_UNIT && target->ToCreature()->IsAvoidingAOE()) // pussywizard
return false;