mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
Fix dumping and restoring game state with morphed creatures.
This commit is contained in:
@@ -98,7 +98,7 @@ public abstract class GameState {
|
||||
if (c.isToken()) {
|
||||
newText.append("t:" + new CardFactory.TokenInfo(c).toString());
|
||||
} else {
|
||||
newText.append(c.getName());
|
||||
newText.append(c.getPaperCard().getName());
|
||||
}
|
||||
if (zoneType == ZoneType.Battlefield) {
|
||||
if (c.isTapped()) {
|
||||
@@ -258,6 +258,7 @@ public abstract class GameState {
|
||||
// by doubling season, etc).
|
||||
c = CardFactory.makeToken(CardFactory.TokenInfo.fromString(tokenStr), player).get(0);
|
||||
} else {
|
||||
System.out.println(cardinfo[0]);
|
||||
c = Card.fromPaperCard(getPaperCard(cardinfo[0]), player);
|
||||
}
|
||||
c.setSickness(false);
|
||||
|
||||
@@ -5662,7 +5662,7 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
}
|
||||
|
||||
public final String getMostRecentSet() {
|
||||
return StaticData.instance().getCommonCards().getCard(getName()).getEdition();
|
||||
return StaticData.instance().getCommonCards().getCard(getPaperCard().getName()).getEdition();
|
||||
}
|
||||
|
||||
public final String getImageKey() {
|
||||
|
||||
Reference in New Issue
Block a user