Merge branch 'develop' into tragkraft-containerwert-abw

This commit is contained in:
2024-04-28 13:41:02 +02:00
+7 -1
View File
@@ -343,7 +343,13 @@ export class M5Item extends Item {
if (item.type === "spell" || item.type === "kampfkunst") { if (item.type === "spell" || item.type === "kampfkunst") {
if (this.actor["system"].ap.value >= item.system.ap) { if (this.actor["system"].ap.value >= item.system.ap) {
this.actor["system"].ap.value -= item.system.ap; this.actor["update"]({
data: {
ap: {
value: this.actor["system"].ap.value - item.system.ap,
},
},
});
} }
} }