* One with the Machine - Fix that non-artifact permanents are considered in determining the amount of cards drawn (fixes #5292).

This commit is contained in:
Quercitron 2018-09-01 16:10:51 +03:00
parent 470fd4c75a
commit 9593462520
2 changed files with 37 additions and 1 deletions

View file

@ -25,6 +25,11 @@ public class HighestConvertedManaCostValue implements DynamicValue {
this.filter = filter;
}
public HighestConvertedManaCostValue(final HighestConvertedManaCostValue dynamicValue){
super();
this.filter = dynamicValue.filter.copy();
}
@Override
public int calculate(Game game, Ability sourceAbility, Effect effect) {
Player controller = game.getPlayer(sourceAbility.getControllerId());
@ -41,7 +46,7 @@ public class HighestConvertedManaCostValue implements DynamicValue {
@Override
public DynamicValue copy() {
return new HighestConvertedManaCostValue();
return new HighestConvertedManaCostValue(this);
}
@Override