mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 19:41:59 -08:00
Propagate values through ConditionalOneShotEffect
This commit is contained in:
parent
c7c5378931
commit
4321f0363e
1 changed files with 7 additions and 0 deletions
|
|
@ -68,6 +68,13 @@ public class ConditionalOneShotEffect extends OneShotEffect {
|
|||
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
|
||||
public ConditionalOneShotEffect copy() {
|
||||
return new ConditionalOneShotEffect(this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue