added warlock invocations

This commit is contained in:
Ben Cook
2018-12-22 13:20:35 -05:00
parent 2146e315eb
commit 8ab3133a2c
2 changed files with 19 additions and 3 deletions
+3 -3
View File
@@ -14,9 +14,9 @@ class Invocation(Feature):
def cast_spell_at_will(self, spell): def cast_spell_at_will(self, spell):
s = spell() s = spell()
s.level = 0 s.level = 0
if 'V' in s.components: if 'M' in s.components:
c = list(s.components) c = list(s.components)
c.remove('V') c.remove('M')
s.components = tuple(c) s.components = tuple(c)
self.spells_known += (s,) self.spells_known += (s,)
self.spells_prepared += (s,) self.spells_prepared += (s,)
@@ -225,7 +225,7 @@ class MistyVisions(Invocation):
""" """
name = "Misty Visions" name = "Misty Visions"
at_will_spells = (spells.MistyVisions,) at_will_spells = (spells.SilentImage,)
class OneWithShadows(Invocation): class OneWithShadows(Invocation):
+16
View File
@@ -1,6 +1,22 @@
from .spells import Spell from .spells import Spell
class Jump(Spell):
"""You touch a creature. The creatures jump distance is tripled until the
spell ends.
"""
name = "Jump"
level = 1
casting_time = '1 action'
casting_range = "Touch"
components = ("V", "S", "M")
materials = "A grasshoppers hind leg"
duration = "1 minute"
magic_school = "Transmutation"
classes = ("Druid", 'Ranger', 'Sorceror', 'Wizard')
class Knock(Spell): class Knock(Spell):
"""Choose an object that you can see within range. The object can be a """Choose an object that you can see within range. The object can be a
door, a box, a chest, a set of manacles, a padlock, or another door, a box, a chest, a set of manacles, a padlock, or another