Ejemplo n.º 1
0
        public static void HandleNpcStatusChanged(S_NPC_STATUS p)
        {
            EntityManager.SetNPCStatus(p.EntityId, p.IsEnraged);
            if (p.Target == 0)
            {
                BossGageWindowViewModel.Instance.UnsetBossTarget(p.EntityId);
            }
            var b = BossGageWindowViewModel.Instance.NpcList.ToSyncArray().FirstOrDefault(x => x.EntityId == p.EntityId);
            //if (BossGageWindowViewModel.Instance.CurrentHHphase == HarrowholdPhase.None) return;
            if (b != null /*&& b.IsBoss*/ && b.Visible)
            {
                GroupWindowViewModel.Instance.SetAggro(p.Target);
                BossGageWindowViewModel.Instance.SetBossAggro(p.EntityId, p.Target);

            }

        }
Ejemplo n.º 2
0
        public static void HandleNpcStatusChanged(S_NPC_STATUS p)
        {
            EntitiesManager.SetNPCStatus(p.EntityId, p.IsEnraged);
            if (p.Target == 0)
            {
                BossGageWindowViewModel.Instance.UnsetBossTarget(p.EntityId);
            }
            var b = BossGageWindowViewModel.Instance.NpcList.FirstOrDefault(x => x.EntityId == p.EntityId);

            if (BossGageWindowViewModel.Instance.CurrentHHphase == HarrowholdPhase.None)
            {
                return;
            }
            if (b != null && b.IsBoss && b.Visible == System.Windows.Visibility.Visible)
            {
                GroupWindowViewModel.Instance.SetAggro(p.Target);
            }
        }
 public static void HandleNpcStatusChanged(S_NPC_STATUS p)
 {
     EntitiesManager.SetNPCStatus(p.EntityId, p.IsEnraged);
 }