forked from External/mage
Fixed mock split card generation. Fixes #3444.
Implementation was missing - copied it from actual split cards.
This commit is contained in:
parent
485ea2729a
commit
12a520c85a
2 changed files with 7 additions and 2 deletions
|
|
@ -37,6 +37,8 @@ import mage.cards.repository.CardInfo;
|
|||
*/
|
||||
public class MockSplitCardHalf extends MockCard implements SplitCardHalf {
|
||||
|
||||
SplitCard splitCardParent;
|
||||
|
||||
public MockSplitCardHalf(CardInfo card) {
|
||||
super(card);
|
||||
}
|
||||
|
|
@ -52,12 +54,12 @@ public class MockSplitCardHalf extends MockCard implements SplitCardHalf {
|
|||
|
||||
@Override
|
||||
public void setParentCard(SplitCard card) {
|
||||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
||||
this.splitCardParent = card;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SplitCard getParentCard() {
|
||||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
||||
return splitCardParent;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue