Ejemplo n.º 1
0
        public static bool CheckCriticalBuffsNextSec(Obj_AI_Hero i)
        {
            double dmg = (from buff in i.Buffs
                          let b = BuffsList.FirstOrDefault(bd => bd.BuffName == buff.Name)
                                  where b != null
                                  select b.GetDamageAfterTime(i, buff, 1f)).Sum();

            return(dmg > i.Health);
        }
Ejemplo n.º 2
0
        public static float BuffRemainingDamage(Obj_AI_Hero i)
        {
            double dmg = (from buff in i.Buffs
                          let b = BuffsList.FirstOrDefault(bd => bd.BuffName == buff.Name)
                                  where b != null
                                  select b.GetDamageRemainingDamage(i, buff)).Sum();

            return((float)dmg);
        }
Ejemplo n.º 3
0
        public static bool CheckCriticalBuffs(AIHeroClient i)
        {
            double dmg = (from buff in i.Buffs
                          let b = BuffsList.FirstOrDefault(bd => bd.BuffName == buff.Name)
                                  where b != null
                                  select b.GetdTotalBuffDamage(i, buff)).Sum();

            return(dmg > i.Health);
        }