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); }
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); } }