- Fixed Brain Freeze and it now appears to storm correctly.

This commit is contained in:
jendave
2011-08-06 09:58:54 +00:00
parent 5e40cda717
commit f963272f3b

View File

@@ -1459,17 +1459,30 @@ public class CardFactory_Instants {
@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 && ((AllZone.Phase.getPhase().equals(Constant.Phase.Main2)) || Phase.StormCount*3 >= libList.size()));
}
return (libList.size() > 0
&& ((AllZone.Phase.getPhase().equals(Constant.Phase.Main2))
|| Phase.StormCount*3 >= libList.size()));
}//canPlayAI()
@Override
public void chooseTargetAI() {
setTargetPlayer(AllZone.HumanPlayer);
}//chooseTargetAI()
@Override
public void resolve() {
AllZone.GameAction.mill(getTargetPlayer(),3);
}
}//resolve()
};//SpellAbility
spell.setBeforePayMana(CardFactoryUtil.input_targetPlayer(spell));
card.clearSpellAbility();
card.addSpellAbility(spell);