mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Little AI tweak in AF Draw.
This commit is contained in:
@@ -481,7 +481,8 @@ public class AbilityFactoryZoneAffecting {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (((computerHandSize + numCards) > computerMaxHandSize)
|
if (((computerHandSize + numCards) > computerMaxHandSize)
|
||||||
&& Singletons.getModel().getGameState().getPhaseHandler().getPlayerTurn().isComputer()) {
|
&& Singletons.getModel().getGameState().getPhaseHandler().getPlayerTurn().isComputer()
|
||||||
|
&& !sa.isTrigger()) {
|
||||||
// Don't draw too many cards and then risk discarding cards at
|
// Don't draw too many cards and then risk discarding cards at
|
||||||
// EOT
|
// EOT
|
||||||
if (!(params.containsKey("NextUpkeep") || (sa instanceof AbilitySub)) && !mandatory) {
|
if (!(params.containsKey("NextUpkeep") || (sa instanceof AbilitySub)) && !mandatory) {
|
||||||
|
|||||||
Reference in New Issue
Block a user