From 632a8c4f1b3c613bfccc40018e727460041a431f Mon Sep 17 00:00:00 2001 From: David Kruger Date: Tue, 20 May 2025 23:28:48 -0700 Subject: [PATCH] Exclude emanations from the list --- dnd5etools/db/spells.py | 2 +- dnd5etools/scripts/spell_templates.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dnd5etools/db/spells.py b/dnd5etools/db/spells.py index f40a916..4b9180e 100644 --- a/dnd5etools/db/spells.py +++ b/dnd5etools/db/spells.py @@ -81,7 +81,7 @@ class SpellRangeType(enum.StrEnum): Line = "line" Cube = "cube" Cone = "cone" - EmanatioN = "emanation" + Emanation = "emanation" Radius = "radius" Sphere = "sphere" Hemisphere = "hemisphere" diff --git a/dnd5etools/scripts/spell_templates.py b/dnd5etools/scripts/spell_templates.py index 9ca8cfe..723a006 100644 --- a/dnd5etools/scripts/spell_templates.py +++ b/dnd5etools/scripts/spell_templates.py @@ -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 )