Hotifix: Casting cantrips without a spell slot
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user