- NPE protection.

This commit is contained in:
Agetian
2015-10-08 20:06:12 +00:00
parent 7df36900e4
commit 16da11a828

View File

@@ -311,7 +311,7 @@ public class GameAction {
} }
// rule 504.6: reveal a face-down card leaving the stack // rule 504.6: reveal a face-down card leaving the stack
if (zoneFrom.is(ZoneType.Stack) && !zoneTo.is(ZoneType.Battlefield) && c.isFaceDown()) { if (zoneFrom != null && zoneTo != null && zoneFrom.is(ZoneType.Stack) && !zoneTo.is(ZoneType.Battlefield) && c.isFaceDown()) {
c.setState(CardStateName.Original, true); c.setState(CardStateName.Original, true);
reveal(new CardCollection(c), c.getOwner(), true, "Face-down card moves from the stack: "); reveal(new CardCollection(c), c.getOwner(), true, "Face-down card moves from the stack: ");
c.setState(CardStateName.FaceDown, true); c.setState(CardStateName.FaceDown, true);