Exclude emanations from the list
This commit is contained in:
parent
13458a0173
commit
632a8c4f1b
@ -81,7 +81,7 @@ class SpellRangeType(enum.StrEnum):
|
|||||||
Line = "line"
|
Line = "line"
|
||||||
Cube = "cube"
|
Cube = "cube"
|
||||||
Cone = "cone"
|
Cone = "cone"
|
||||||
EmanatioN = "emanation"
|
Emanation = "emanation"
|
||||||
Radius = "radius"
|
Radius = "radius"
|
||||||
Sphere = "sphere"
|
Sphere = "sphere"
|
||||||
Hemisphere = "hemisphere"
|
Hemisphere = "hemisphere"
|
||||||
|
@ -53,6 +53,7 @@ def is_template_spell(spell: dnd5etools.db.spells.Spell) -> bool:
|
|||||||
return (
|
return (
|
||||||
len(spell.area_type) > 0
|
len(spell.area_type) > 0
|
||||||
and has_timed_duration(spell)
|
and has_timed_duration(spell)
|
||||||
|
and spell.range.type != dnd5etools.db.spells.SpellRangeType.Emanation
|
||||||
and area_size_re.search(spell.description) is not None
|
and area_size_re.search(spell.description) is not None
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user