Beispiel #1
0
    public void Roll(BattleSide side, System.Random dice)
    {
        side.effectOnOpponent = default;
        side.effectOnSelf     = default;

        side.selectedAbility = this;
        side.effectOnOpponent.statChanges.health = -GetDamage(side.currentMonster, dice);

        if (special != null)
        {
            bool success = GetSpecialSuccess(side.currentMonster, dice);

            if (success)
            {
                side.effectOnOpponent.successfulSpecial = special;
            }

            special.ModifyRolledAbility(side, success, dice);
        }
    }