- The AI will no longer tutor cards in main1 with more than one card in hand already.

This commit is contained in:
Sloth
2012-07-22 16:23:23 +00:00
parent 9f58140991
commit 1fcd2b381d

View File

@@ -538,9 +538,15 @@ public final class AbilityFactoryChangeZone {
}
// don't use fetching to top of library/graveyard before main2
if (Singletons.getModel().getGameState().getPhaseHandler().getPhase().isBefore(PhaseType.MAIN2) && !params.containsKey("ActivationPhases")
&& !destination.equals("Battlefield") && !destination.equals("Hand")) {
return false;
if (Singletons.getModel().getGameState().getPhaseHandler().getPhase().isBefore(PhaseType.MAIN2)
&& !params.containsKey("ActivationPhases")) {
if (!destination.equals("Battlefield") && !destination.equals("Hand")) {
return false;
}
// Only tutor something in main1 if hand is almost empty
if (AllZone.getComputerPlayer().getCardsIn(ZoneType.Hand).size() > 1 && destination.equals("Hand")) {
return false;
}
}
chance &= (r.nextFloat() < .8);