Пример #1
0
    public override int Apply(Character origin, Character target)
    {
        int damage = 0;

        foreach (Effect e in target.statusEffects)
        {
            if (e.GetType() == stack.GetType())
            {
                DotStack s = (DotStack)e;
                damage = s.duration;
                break;
            }
        }
        target.ChangeHealth(-damage);
        return(0);
    }