Exemplo n.º 1
0
 public static void CheckVoc(ulong target)
 {
     if (MarkedTargets.Contains(target))
     {
         MarkedTargets.Remove(target);
         if (MarkedTargets.Count == 0)
         {
             InvokeMarkingExpired();
         }
     }
 }
Exemplo n.º 2
0
 private static void CheckVoc(S_ABNORMALITY_END p)
 {
     if (VocId != p.AbnormalityId)
     {
         return;
     }
     if (MarkedTargets.Contains(p.TargetId))
     {
         MarkedTargets.Remove(p.TargetId);
     }
     if (MarkedTargets.Count == 0)
     {
         InvokeMarkingExpired();
     }
 }
Exemplo n.º 3
0
 private static void CheckVoc(S_ABNORMALITY_REFRESH p)
 {
     if (VocId != p.AbnormalityId)
     {
         return;
     }
     if (!WindowManager.ViewModels.NpcVM.TryFindNPC(p.TargetId, out _))
     {
         return;
     }
     if (!MarkedTargets.Contains(p.TargetId))
     {
         MarkedTargets.Add(p.TargetId);
     }
     InvokeMarkingRefreshed(p.Duration);
 }
Exemplo n.º 4
0
        private static void CheckVoc(S_ABNORMALITY_REFRESH p)
        {
            if (VocId != p.AbnormalityId)
            {
                return;
            }
            var target = WindowManager.BossWindow.VM.NpcList.ToSyncList().FirstOrDefault(x => x.EntityId == p.TargetId);

            if (target != null)
            {
                if (!MarkedTargets.Contains(p.TargetId))
                {
                    MarkedTargets.Add(p.TargetId);
                }
                InvokeMarkingRefreshed(p.Duration);
            }
        }
        private static void CheckVoc(S_ABNORMALITY_REFRESH p)
        {
            if (VocId != p.AbnormalityId)
            {
                return;
            }
            var target = BossGageWindowViewModel.Instance.NpcList.FirstOrDefault(x => x.EntityId == p.TargetId);

            if (target != null)
            {
                if (!MarkedTargets.Contains(p.TargetId))
                {
                    MarkedTargets.Add(p.TargetId);
                }
                InvokeMarkingRefreshed(p.Duration);
            }
        }