- Ensure that a card is returned to its original state when it's being moved from the battlefield (fixes e.g. a Manifested tapland returning to hand that then causes a crash when that same land is played from hand later).

- This is a little experimental, please test for possible issues!
This commit is contained in:
Agetian
2015-10-04 07:57:59 +00:00
parent 37041145bf
commit 25362f728f

View File

@@ -177,6 +177,10 @@ public class GameAction {
copied.setUnearthed(c.isUnearthed());
copied.setTapped(false);
if (fromBattlefield) {
// when a card leaves the battlefield, ensure it's in its original state
copied.setState(CardStateName.Original, false);
}
for (final Trigger trigger : copied.getTriggers()) {
trigger.setHostCard(copied);
}