Merge branch 'develop' into Vereinfachter-NPC/Kreaturen-Bogen

This commit is contained in:
2024-05-06 13:55:45 +02:00
12 changed files with 96 additions and 31 deletions
+7 -1
View File
@@ -343,7 +343,13 @@ export class M5Item extends Item {
if (item.type === "spell" || item.type === "kampfkunst") {
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,
},
},
});
}
}