fix: Adds GetDistanceToSqrt for Point3D and centralizes all the calls (#2233)

This commit is contained in:
Kamron Batman 2025-07-18 09:24:41 -07:00 • committed by GitHub
parent 2086e9b292
commit 416e1be735
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 56 additions and 39 deletions

View file

@ -86,7 +86,7 @@ public partial class SummonedPaladin : BaseCreature
Timer.StartTimer(TimeSpan.FromSeconds(5.0), Delete);
}
else if (_necromancer.Map != Map || GetDistanceToSqrt(_necromancer) > RangePerception + 1)
else if (_necromancer.Map != Map || this.GetDistanceToSqrt(_necromancer) > RangePerception + 1)
{
Effects.SendLocationParticles(
EffectItem.Create(Location, Map, EffectItem.DefaultDuration),