From 8d176bf82b09b5b3e512e1bcf3ce8b954641af94 Mon Sep 17 00:00:00 2001 From: BetaSteward Date: Mon, 6 Dec 2010 00:04:36 +0000 Subject: [PATCH] fixed issue 49 --- Mage/src/mage/game/GameImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mage/src/mage/game/GameImpl.java b/Mage/src/mage/game/GameImpl.java index c62965f896..182107d0d4 100644 --- a/Mage/src/mage/game/GameImpl.java +++ b/Mage/src/mage/game/GameImpl.java @@ -658,7 +658,7 @@ public abstract class GameImpl> implements Game, Serializa if (perm.getAttachments().size() > 0) { for (UUID attachmentId: perm.getAttachments()) { Permanent attachment = getPermanent(attachmentId); - if (!(attachment.getSubtype().contains("Aura") || + if (attachment != null && !(attachment.getSubtype().contains("Aura") || attachment.getSubtype().contains("Equipment") || attachment.getSubtype().contains("Fortification"))) { if (perm.removeAttachment(id, this))