Exemplo n.º 1
0
    public void LoseHealth()
    {
        Investigator active = App.Model.combatModel.currentInvestigator;

        if (active.deathEncounter != null)
        {
            App.View.combatView.NextFight();
            FinishCombat();
        }
        else
        {
            active.LoseHealth(active.GetIncomingDamage());
            active.SetIncomingDamage(0);

            GameManager.SingleInstance.App.Controller.queueController.CreateCallBackQueue(DealDamageToMonster); // Create Queue
            GameManager.SingleInstance.App.Model.eventModel.DamageTakenEvent();                                 // Populate Queue
            GameManager.SingleInstance.App.Controller.queueController.StartCallBackQueue();                     // Start Queue
        }
    }