예제 #1
0
        public bool Recall()
        {
            if (!IsDead && !IsStationary && !PendingDisposal)
            {
                MvtInterface.ScaleSpeed(Owner.MountID != 0 ? 1.5f : SpeedMult);
                MvtInterface.Recall(Owner);

                FollowMode = 2;
                IsHeeling  = true;
                AiInterface.Debugger?.SendClientMessage("[MR]: Ignoring enemies during heel.");
                SendPetUpdate();
            }

            return(false);
        }
예제 #2
0
        public bool Recall(Object obj, object args)
        {
            if (!IsDead && !IsStationary && !PendingDisposal)
            {
                if (Zone == null)
                {
                    Log.Error("Pet", $"{Name} owned by {Owner.Name}: Not in a zone - IsDisposed: {IsDisposed}\n{Environment.StackTrace}");
                    return(true);
                }
                MvtInterface.ScaleSpeed(Owner.MountID != 0 ? 1.5f : SpeedMult);
                MvtInterface.Recall(Owner);

                FollowMode = 2;
                IsHeeling  = true;
                AiInterface.Debugger?.SendClientMessage("[MR]: Ignoring enemies during heel.");
                SendPetUpdate();
            }

            return(false);
        }