From 5167948b44c64410160b1ce9b60af25da7272b08 Mon Sep 17 00:00:00 2001 From: swordshine Date: Mon, 24 Feb 2014 07:47:48 +0000 Subject: [PATCH] - Fixed NPE --- .../src/main/java/forge/game/spellability/SpellAbility.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forge-game/src/main/java/forge/game/spellability/SpellAbility.java b/forge-game/src/main/java/forge/game/spellability/SpellAbility.java index 0c2296a78af..0f6ecc83b7b 100644 --- a/forge-game/src/main/java/forge/game/spellability/SpellAbility.java +++ b/forge-game/src/main/java/forge/game/spellability/SpellAbility.java @@ -1627,7 +1627,7 @@ public abstract class SpellAbility extends CardTraitBase implements ISpellAbilit // Return whether this spell tracks what color mana is spent to cast it for the sake of the effect public boolean tracksManaSpent() { - if (this.hostCard == null) { return false; } + if (this.hostCard == null || this.hostCard.getRules() == null) { return false; } if (this.hostCard.hasKeyword("Sunburst")) { return true;