Hotifix: Casting cantrips without a spell slot

This commit is contained in:
Stefan Zermatten
2022-10-12 07:36:42 +02:00
parent 84f506f1fe
commit 58c3875dc7

View File

@@ -69,7 +69,7 @@ const doAction = new ValidatedMethod({
let slot; let slot;
// If a spell requires a slot, make sure a slot is spent // 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); slot = CreatureProperties.findOne(slotId);
if (!slot) { if (!slot) {
throw new Meteor.Error('No slot', throw new Meteor.Error('No slot',