fixed NPE in Identity Crisis.

This commit is contained in:
jendave
2011-08-06 14:56:52 +00:00
parent 346680a637
commit e55e4571a1

View File

@@ -3973,8 +3973,7 @@ public class CardFactory_Sorceries {
@Override
public boolean canPlayAI() {
Player player = getTargetPlayer();
PlayerZone lib = AllZone.getZone(Constant.Zone.Library, player);
PlayerZone lib = AllZone.getZone(Constant.Zone.Library, AllZone.HumanPlayer);
CardList libList = new CardList(lib.getCards());
return libList.size() > 0;
}
@@ -4003,6 +4002,7 @@ public class CardFactory_Sorceries {
}
}
};//SpellAbility
spell.setChooseTargetAI(CardFactoryUtil.AI_targetHuman());
spell.setBeforePayMana(CardFactoryUtil.input_targetPlayer(spell));
card.clearSpellAbility();
card.addSpellAbility(spell);