Esempio n. 1
0
    /// <summary>
    /// Check if each effect should remain active
    /// </summary>
    public void ExecuteRemainActiveCheck()
    {
        for (int i = 0; i < effects.Count; i++)
        {
            EffectInstance eff = effects[i];
            eff.CheckRemainActive();

            if (!eff.castSuccess)
            {
                RemoveEffect(eff);
                i--;
            }
        }
    }