mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
Merge pull request #14061
* move setPT to Card * Create DoubleFacedCard and DoubleFacedCardHalf to share code between … * Create Transforming Double Face Card class * allow putting either permanent side of a double faced card to the bat… * refactor exile and return transforming card * update ModalDoubleFacedCard references to DoubleFacedCard where relev… * update for GUI * refactor a disturb card * refactor more disturb cards for test coverage * refactor a transform card * refactor more transform cards for test coverage * fix Archangel Avacyn * fix cantPlayTDFCBackSide inconsistency * fix Double Faced Cards having triggers and static abilities when tran… * fix Double Faced Cards card view erroring when flipping in client * fix test_Copy_AsSpell_Backside inconsistency * enable Spider-Man MDFC * convert TDFC with saga as the front and add card references to Transf… * refactor More Than Meets the Eye Card * refactor a battle * refactor a craft card * update comment on PeterParkerTest * Merge branch 'master' into rework-dfc * fix Saga TDFC Azusa's Many Journeys * fix double faced cards adding permanent triggers / effects to game * move permanents entering map into Battlefield * convert Room cards for new Permanent structure * fix disturb not exiling * Merge branch 'master' into rework-dfc * fix Eddie Brock Power/Toughness * fix Miles Morales ability on main card * fix verify conditions for siege and day/night cards * change room characteristics to text effect to match game rules * update verify test to skip DoubleFacedCard in missing card test * accidentally removed transform condition * Merge branch 'master' into rework-dfc * fix verify * CardUtil - remove unnecessary line from castSingle method
This commit is contained in:
parent
29557f4334
commit
69e20b1061
121 changed files with 3020 additions and 2225 deletions
|
|
@ -940,8 +940,13 @@ public abstract class CardPanel extends MagePermanent implements ComponentListen
|
|||
private void setGameCardSides(CardView gameCard) {
|
||||
if (this.cardSideMain == null) {
|
||||
// new card
|
||||
this.cardSideMain = gameCard;
|
||||
this.cardSideOther = gameCard.getSecondCardFace();
|
||||
if (gameCard instanceof PermanentView) {
|
||||
this.cardSideMain = gameCard;
|
||||
this.cardSideOther = gameCard.isTransformed() ? ((PermanentView) gameCard).getOriginal() : gameCard.getSecondCardFace();
|
||||
} else {
|
||||
this.cardSideMain = gameCard;
|
||||
this.cardSideOther = gameCard.getSecondCardFace();
|
||||
}
|
||||
} else {
|
||||
// updated card
|
||||
if (this.cardSideMain.getName().equals(gameCard.getName())) {
|
||||
|
|
|
|||
|
|
@ -558,12 +558,12 @@ public class DownloadPicturesService extends DefaultBoundedRangeModel implements
|
|||
);
|
||||
allCardsUrls.add(url);
|
||||
}
|
||||
if (card.isModalDoubleFacedCard()) {
|
||||
if (card.getModalDoubleFacedSecondSideName() == null || card.getModalDoubleFacedSecondSideName().trim().isEmpty()) {
|
||||
if (card.isDoubleFacedCard()) {
|
||||
if (card.getDoubleFacedSecondSideName() == null || card.getDoubleFacedSecondSideName().trim().isEmpty()) {
|
||||
throw new IllegalStateException("MDF card can't have empty name.");
|
||||
}
|
||||
CardDownloadData cardDownloadData = new CardDownloadData(
|
||||
card.getModalDoubleFacedSecondSideName(),
|
||||
card.getDoubleFacedSecondSideName(),
|
||||
card.getSetCode(),
|
||||
card.getCardNumber(),
|
||||
card.usesVariousArt(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue