public void DecayBuffs(BattleCharacter character) { var characterBeforeBuffs = (BattleCharacter)character.Clone(); character.DecayBuffs(); ui.ShowBuffsChanges(characterBeforeBuffs, character); }
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); }