mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
- NPE protection.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user