- 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 // don't use fetching to top of library/graveyard before main2
if (Singletons.getModel().getGameState().getPhaseHandler().getPhase().isBefore(PhaseType.MAIN2) && !params.containsKey("ActivationPhases") if (Singletons.getModel().getGameState().getPhaseHandler().getPhase().isBefore(PhaseType.MAIN2)
&& !destination.equals("Battlefield") && !destination.equals("Hand")) { && !params.containsKey("ActivationPhases")) {
return false; 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); chance &= (r.nextFloat() < .8);