mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Merge branch '1836-npe-at-forge-game-gameaction-sacrificedestroy-gameaction-java-1709' into 'master'
Resolve "NPE at forge.game.GameAction.sacrificeDestroy(GameAction.java:1709)" Closes #1836 See merge request core-developers/forge!4699
This commit is contained in:
@@ -1699,7 +1699,7 @@ public class GameAction {
|
||||
}
|
||||
|
||||
final Card newCard = moveToGraveyard(c, cause, null);
|
||||
if (table != null) {
|
||||
if (table != null && newCard != null && newCard.getZone() != null) {
|
||||
table.put(ZoneType.Battlefield, newCard.getZone().getZoneType(), newCard);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user