Exemplo n.º 1
0
        public void Execute(HeroState hero)
        {
            if (hero == null)
            {
                throw new System.ArgumentNullException(nameof(hero));
            }

            if (_monster.IsWonVs(hero, _cond))
            {
                hero.Health -= _cond.LossHealthLost;
            }
            else
            {
                hero.Health -= _cond.WinHealthLost;
                hero.Money  += _cond.WinMoney;
            }
        }