Sneak update, AP Cost not working correctly

This commit is contained in:
Byroks 2024-04-27 18:45:20 +02:00
parent c5e5ba199b
commit 5a1e11d0d7
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 (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,
},
},
});
}
}