MDL/ADRL fixes + MR fixes

This commit is contained in:
2023-09-19 12:47:55 +02:00
parent 26f2fba457
commit 552ff9564a
2 changed files with 3 additions and 3 deletions

View File

@@ -1937,7 +1937,7 @@ export class PegasusActor extends Actor {
}
let effects = this.items.filter(item => item.type == 'effect')
for (let effect of effects) {
if (effect.system.hindrance) {
if (effect.system.hindrance && ( effect.system.stataffected == statKey || effect.system.stataffected == "all")) {
hindrancesDices += effect.system.effectlevel
if ( effect.system.oneuse) {
effect.system.isUSed = true // Ensure deletion