mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- Fixed Brain Freeze and it now appears to storm correctly.
This commit is contained in:
@@ -1459,21 +1459,34 @@ public class CardFactory_Instants {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean canPlayAI() {
|
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());
|
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
|
@Override
|
||||||
public void resolve() {
|
public void resolve() {
|
||||||
|
|
||||||
AllZone.GameAction.mill(getTargetPlayer(),3);
|
AllZone.GameAction.mill(getTargetPlayer(),3);
|
||||||
}
|
|
||||||
|
}//resolve()
|
||||||
};//SpellAbility
|
};//SpellAbility
|
||||||
|
|
||||||
spell.setBeforePayMana(CardFactoryUtil.input_targetPlayer(spell));
|
spell.setBeforePayMana(CardFactoryUtil.input_targetPlayer(spell));
|
||||||
card.clearSpellAbility();
|
card.clearSpellAbility();
|
||||||
card.addSpellAbility(spell);
|
card.addSpellAbility(spell);
|
||||||
}//*************** END ************ END **************************
|
}//*************** END ************ END **************************
|
||||||
|
|
||||||
/*
|
/*
|
||||||
//*************** START *********** START **************************
|
//*************** START *********** START **************************
|
||||||
|
|||||||
Reference in New Issue
Block a user