revert GameMechanicState change

This commit is contained in:
Donaldino7712 2024-09-12 13:57:42 +02:00
parent 109c823e32
commit 83be26ea2c

View File

@ -20,9 +20,9 @@ export class GameMechanicState extends Effect {
} else {
effect = new Effect(nested.effect, nested.cap, nested.effectCondition);
}
Object.defineProperty(effect, "canBeApplied", {
Object.defineProperty(effect, "isEffectActive", {
configurable: false,
get: () => this.canBeApplied
get: () => this.isEffectActive
});
this.effects[key] = effect;
}