Example #1
0
        public void DecayBuffs(BattleCharacter character)
        {
            var characterBeforeBuffs = (BattleCharacter)character.Clone();

            character.DecayBuffs();
            ui.ShowBuffsChanges(characterBeforeBuffs, character);
        }
Example #2
0
        public void TestBuffDecay()
        {
            var poisoned = new Poisoned();
            var duration = poisoned.GetDurationInTurns();

            character.AddBuff(poisoned);

            Assert.That(character.ActiveBuffs.Count == 1);

            for (var x = 0; x <= duration; x++)
            {
                character.DecayBuffs();
            }

            Assert.That(character.ActiveBuffs.Count == 0);
        }