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

@@ -611,11 +611,12 @@ export default {
},
incrementChange(_id, { type, value, ack }) {
const model = CreatureProperties.findOne(_id);
if (!model) return;
if (type === 'increment') value = -value;
doAction({
creatureId: model.root.id,
$store: this.$store,
elementId: `${model._id}-${type}`,
elementId: `${model._id}`,
task: {
subtaskFn: 'damageProp',
targetIds: [model.root.id],