Fixed Error when referencing slotLevel in a spell

This commit is contained in:
Stefan Zermatten
2021-03-26 11:18:14 +02:00
parent 5a2e500348
commit 1978a2e4c7

View File

@@ -65,7 +65,7 @@ const castSpellWithSlot = new ValidatedMethod({
action: spell,
context: {slotLevel},
creature,
targets: [target],
targets: target ? [target] : [],
method: this,
});
// Note this only recomputes the top-level creature, not the nearest one