tragkraft-containerwert-abw-kidoprep #103

Merged
Le-Frique merged 6 commits from tragkraft-containerwert-abw into develop 2024-05-01 19:10:49 +02:00
1 changed files with 7 additions and 1 deletions
Showing only changes of commit e5ae31406b - Show all commits

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