Propagate values through ConditionalOneShotEffect

This commit is contained in:
xenohedron 2023-06-09 00:29:17 -04:00
parent c7c5378931
commit 4321f0363e

View file

@ -68,6 +68,13 @@ public class ConditionalOneShotEffect extends OneShotEffect {
return this; return this;
} }
@Override
public void setValue(String key, Object value) {
super.setValue(key, value);
this.effects.setValue(key, value);
this.otherwiseEffects.setValue(key, value);
}
@Override @Override
public ConditionalOneShotEffect copy() { public ConditionalOneShotEffect copy() {
return new ConditionalOneShotEffect(this); return new ConditionalOneShotEffect(this);