Fixed various action calling issues

This commit is contained in:
ThaumRystra
2025-07-25 19:15:40 +02:00
parent 41e9fb4069
commit 899dcf42b1
12 changed files with 27 additions and 17 deletions

View File

@@ -360,12 +360,17 @@ export default {
const withoutSpellSlot = slotId === 'no-slot';
if (ritual || withoutSpellSlot) slotId = undefined;
const $store = this.$store;
const spell = CreatureProperties.findOne(spellId);
if (!spell || spell.type !== 'spell') {
return;
}
doAction({
creatureId: this.creatureId,
$store,
task: {
subtaskFn: 'castSpell',
prop: CreatureProperties.findOne(spellId),
prop: spell,
targetIds: [],
params: {
slotId,
ritual,