public void ProvidesImmunities() { var sorcerer = CharacterTestTemplates.Sorcerer(); sorcerer.SetLevel(20); sorcerer.Add(new SoulOfTheFey()); AssertCharacter.IsImmuneTo("poison", sorcerer); AssertCharacter.HasDamageResistance(sorcerer, "cold iron", 10); }
public void ProvidesImmunities() { var sorcerer = CharacterTestTemplates.Sorcerer(); var power = new PowerOfThePit(); sorcerer.Add(power); AssertCharacter.HasDamageResistance(sorcerer, "acid", 10); AssertCharacter.HasDamageResistance(sorcerer, "cold", 10); AssertCharacter.IsImmuneTo("fire", sorcerer); AssertCharacter.IsImmuneTo("poison", sorcerer); }
public void GrantsResistanceBasedOnEnergyType() { var sorcerer = CharacterTestTemplates.Sorcerer(); var elementalType = new ElementalType(); elementalType.EnergyType = "cold"; sorcerer.Add(elementalType); var resist = new ElementalResistance(); sorcerer.Add(resist); AssertCharacter.HasDamageResistance(sorcerer, "cold", 10); sorcerer.SetLevel(9); resist.LeveledUp(sorcerer.Components); AssertCharacter.HasDamageResistance(sorcerer, "cold", 20); }
public void SelectsAnEnergyTypeToGenerateResistanceTo() { var wizard = CharacterTestTemplates.Wizard(); var energyType = new EnergyType(); energyType.Name = "fire"; var abjRes = new AbjurationResistance(EntityGateway <EnergyType> .LoadWithSingleItem(energyType)); wizard.Add(abjRes); AssertCharacter.HasDamageResistance("fire", 5, wizard); wizard.SetLevel(11); AssertCharacter.HasDamageResistance("fire", 10, wizard); wizard.SetLevel(20); AssertCharacter.IsImmuneTo("fire", wizard); }
public void GrantsResistances() { AssertCharacter.HasDamageResistance(sorcerer, "fire", 5); sorcerer.SetLevel(9); resistances.LeveledUp(sorcerer.Components); }