Esempio n. 1
0
    public static void EndBattleImmediate()
    {
        TargetableObject attacker = battleInfo.GetAttacker();
        TargetableObject defender = battleInfo.GetDefender();

        if (battleResult.victory)
        {
            if (attacker.MyCountry != defender.MyCountry)
            {
                defender.OnBattleWon(attacker);
            }
        }
        else
        {
            defender.OnBattleLost(attacker);
        }

        //FinishBattle();
    }