Exemplo n.º 1
0
        private bool IsControlled(Creature mob)
        {
            if (mob == null)
                return true;

            List<Buff> buffs = mob.getBuffs();
            foreach (Buff b in buffs)
            {
                if (controlDebuffs.Contains(b.id))
                {
                    return true;
                }
            }

            return false;
        }