mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
fix restoring tapped and summon sick state
This commit is contained in:
@@ -189,9 +189,12 @@ public class GameState {
|
|||||||
if (kv.getKey() == ZoneType.Battlefield) {
|
if (kv.getKey() == ZoneType.Battlefield) {
|
||||||
p.getZone(kv.getKey()).setCards(new ArrayList<Card>());
|
p.getZone(kv.getKey()).setCards(new ArrayList<Card>());
|
||||||
for (final Card c : kv.getValue()) {
|
for (final Card c : kv.getValue()) {
|
||||||
|
boolean tapped = c.isTapped();
|
||||||
|
boolean sickness = c.hasSickness();
|
||||||
p.getZone(ZoneType.Hand).add(c);
|
p.getZone(ZoneType.Hand).add(c);
|
||||||
p.getGame().getAction().moveToPlay(c);
|
p.getGame().getAction().moveToPlay(c);
|
||||||
c.setSickness(false);
|
c.setTapped(tapped);
|
||||||
|
c.setSickness(sickness);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
p.getZone(kv.getKey()).setCards(kv.getValue());
|
p.getZone(kv.getKey()).setCards(kv.getValue());
|
||||||
|
|||||||
Reference in New Issue
Block a user