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:
Susucre 2023-08-20 19:30:10 +02:00 committed by GitHub
parent 3d9b0e422c
commit 343549c4d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 222 additions and 55 deletions

View file

@ -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);
}
}