mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 21:12:04 -08:00
fixed implementation of Cradle of Vitality (fixes #6428)
This commit is contained in:
parent
506b734235
commit
1f85dcb334
3 changed files with 27 additions and 60 deletions
|
|
@ -167,4 +167,7 @@ public class Effects extends ArrayList<Effect> {
|
|||
}
|
||||
}
|
||||
|
||||
public void setValue(String key, Object value) {
|
||||
this.stream().forEach(effect -> effect.setValue(key, value));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -167,6 +167,13 @@ public class DoIfCostPaid extends OneShotEffect {
|
|||
return sb.append(costText).toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setValue(String key, Object value) {
|
||||
super.setValue(key, value);
|
||||
this.executingEffects.setValue(key, value);
|
||||
this.otherwiseEffects.setValue(key, value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DoIfCostPaid copy() {
|
||||
return new DoIfCostPaid(this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue