From 58c3875dc70f8e10b7a3e62168c1bef97e004aa1 Mon Sep 17 00:00:00 2001 From: Stefan Zermatten Date: Wed, 12 Oct 2022 07:36:42 +0200 Subject: [PATCH] Hotifix: Casting cantrips without a spell slot --- app/imports/api/engine/actions/doCastSpell.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/imports/api/engine/actions/doCastSpell.js b/app/imports/api/engine/actions/doCastSpell.js index 851ac0c2..f512e4ed 100644 --- a/app/imports/api/engine/actions/doCastSpell.js +++ b/app/imports/api/engine/actions/doCastSpell.js @@ -69,7 +69,7 @@ const doAction = new ValidatedMethod({ let slot; // If a spell requires a slot, make sure a slot is spent - if (!spell.castWithoutSpellSlots && !(ritual && spell.ritual)) { + if (spell.level && !spell.castWithoutSpellSlots && !(ritual && spell.ritual)) { slot = CreatureProperties.findOne(slotId); if (!slot) { throw new Meteor.Error('No slot',