5 lines
190 B
JavaScript
5 lines
190 B
JavaScript
if (this.actor.system.status?.ward?.value) {
|
|
this.actor.system.status.ward.value = Math.max(7, this.actor.system.status.ward.value-1);
|
|
} else {
|
|
this.actor.system.status.ward.value = 9;
|
|
} |