Exclude emanations from the list

This commit is contained in:
David Kruger 2025-05-20 23:28:48 -07:00
parent 13458a0173
commit 632a8c4f1b
2 changed files with 2 additions and 1 deletions

View File

@ -81,7 +81,7 @@ class SpellRangeType(enum.StrEnum):
Line = "line"
Cube = "cube"
Cone = "cone"
EmanatioN = "emanation"
Emanation = "emanation"
Radius = "radius"
Sphere = "sphere"
Hemisphere = "hemisphere"

View File

@ -53,6 +53,7 @@ def is_template_spell(spell: dnd5etools.db.spells.Spell) -> bool:
return (
len(spell.area_type) > 0
and has_timed_duration(spell)
and spell.range.type != dnd5etools.db.spells.SpellRangeType.Emanation
and area_size_re.search(spell.description) is not None
)