fix: Standardizes the variables for AI (#2234)

This commit is contained in:
Kamron Batman 2025-07-18 17:50:32 -07:00 • committed by GitHub
parent 416e1be735
commit 8f88de68a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 1284 additions and 1287 deletions

View file

@ -234,11 +234,11 @@ namespace Server.Mobiles
public override bool Think()
{
// Clones only follow their owners
var master = m_Mobile.SummonMaster;
var master = Mobile.SummonMaster;
if (master?.Map == m_Mobile.Map && master?.InRange(m_Mobile, m_Mobile.RangePerception) == true)
if (master?.Map == Mobile.Map && master?.InRange(Mobile, Mobile.RangePerception) == true)
{
var iCurrDist = (int)m_Mobile.GetDistanceToSqrt(master);
var iCurrDist = (int)Mobile.GetDistanceToSqrt(master);
var bRun = iCurrDist > 5;
WalkMobileRange(master, 2, bRun, 0, 1);