public void TestDivineSmite() { Character player = PlayerHelper.GetPaladin(6, 19); AssertRoll("Divine Smite", player, 1, DiceRollType.DamageOnly, "1d8(radiant:damage)"); AssertRoll("Divine Smite", player, 2, DiceRollType.DamageOnly, "2d8(radiant:damage)"); }
DiceRoll AssertSimpleSpell(string spellName, int spellCasterLevel, int spellCasterAbilityModifier = 0, int spellSlotLevel = -1) { Character player = PlayerHelper.GetPaladin(6, 19); DiceRoll roll = DiceRollHelper.GetSpellFrom(spellName, player, spellSlotLevel); Assert.AreEqual(DiceRollType.CastSimpleSpell, roll.Type); return(roll); }
public void When_CureWounds_is_cast_then_roll_1d8_plus_4_healing() { Character player = PlayerHelper.GetPaladin(6, 19); DiceRoll roll = DiceRollHelper.GetSpellFrom("Cure Wounds", player, 1); Assert.AreEqual(DiceRollType.HealthOnly, roll.Type); Assert.AreEqual("1d8+4(healing)", roll.DamageHealthExtraDice); }
public void TestLilCutieSpells() { Character player = PlayerHelper.GetPaladin(6, 19); AssertRoll("Cure Wounds", player, 1, DiceRollType.HealthOnly, "1d8+4(healing)"); AssertRoll("Cure Wounds", player, 2, DiceRollType.HealthOnly, "2d8+4(healing)"); AssertRoll("Guiding Bolt", player, 1, DiceRollType.Attack, "4d6(radiant)"); AssertRoll("Guiding Bolt", player, 2, DiceRollType.Attack, "5d6(radiant)"); }