Merge branch 'develop' into tragkraft-containerwert-abw

This commit is contained in:
LeFrique 2024-04-28 13:41:02 +02:00
commit e5ae31406b
1 changed files with 7 additions and 1 deletions

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,
},
},
});
} }
} }