mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- The AI will no longer tutor cards in main1 with more than one card in hand already.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user