mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
* 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:
parent
470fd4c75a
commit
9593462520
2 changed files with 37 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue