示例#1
0
        public bool CanCast(int id, int upgrade)
        {
            int mUpgrade;

            return(m_gcd <= 0 && m_spells.TryGetValue(id, out mUpgrade) && mUpgrade == upgrade && !m_cooldowns.Contains(id) && m_cast.CanCast(id, upgrade));
        }