forked from External/mage
Fix PermanentMeld missing copy constructor ; add more Meld tests. (#10908)
* Add some unit tests on Meld mana value. * Fix PermanentMeld missing copy constructor. add more Meld tests. * clean text
This commit is contained in:
parent
3d9b0e422c
commit
343549c4d7
2 changed files with 222 additions and 55 deletions
|
|
@ -1,11 +1,11 @@
|
|||
package mage.game.permanent;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.cards.Card;
|
||||
import mage.game.Game;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author emerald000
|
||||
*/
|
||||
public class PermanentMeld extends PermanentCard {
|
||||
|
|
@ -14,6 +14,10 @@ public class PermanentMeld extends PermanentCard {
|
|||
super(card, controllerId, game);
|
||||
}
|
||||
|
||||
private PermanentMeld(final PermanentMeld permanent) {
|
||||
super(permanent);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getManaValue() {
|
||||
if (this.isCopy()) {
|
||||
|
|
@ -27,4 +31,9 @@ public class PermanentMeld extends PermanentCard {
|
|||
public boolean isTransformable() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public PermanentMeld copy() {
|
||||
return new PermanentMeld(this);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue