コード例 #1
0
        public void EvilCreaturesTakeCommandUndead()
        {
            var wizard = CharacterTestTemplates.Wizard();

            wizard.Alignment = CharacterAlignment.ChaoticEvil;
            var power = new PowerOverUndead();

            wizard.Add(power);
            AssertCharacter.HasFeatToken("Command Undead", wizard);
        }
コード例 #2
0
        public void GoodCreaturesTakeTurnUndead()
        {
            var wizard = CharacterTestTemplates.Wizard();

            wizard.Alignment = CharacterAlignment.ChaoticGood;
            var power = new PowerOverUndead();

            wizard.Add(power);
            AssertCharacter.HasFeatToken("Turn Undead", wizard);
        }
コード例 #3
0
        public void ChoosesAFeatFromTheAvailableFeats()
        {
            var yaml        = @"
- name: Archery
  bonus-feats:
    - level: 1
      feats: [feat one]".ParseYaml().Children.First();
            var combatStyle = new CombatStyle(yaml);
            var character   = CharacterTestTemplates.Ranger();

            character.SetLevel(2);
            character.Add(combatStyle);
            var step = new SelectCombatStyleFeat();

            step.ExecuteStep(character);
            AssertCharacter.HasFeatToken("feat one", character);
        }