- Fixed NPE

This commit is contained in:
swordshine
2014-02-24 07:47:48 +00:00
parent 859e721566
commit 5167948b44

View File

@@ -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 // Return whether this spell tracks what color mana is spent to cast it for the sake of the effect
public boolean tracksManaSpent() { public boolean tracksManaSpent() {
if (this.hostCard == null) { return false; } if (this.hostCard == null || this.hostCard.getRules() == null) { return false; }
if (this.hostCard.hasKeyword("Sunburst")) { if (this.hostCard.hasKeyword("Sunburst")) {
return true; return true;