- Little AI improvement for bounce spells (will only be used before own main2 if the AI controls creatures).

This commit is contained in:
Sloth
2011-11-01 15:44:34 +00:00
parent 85d71ffcdf
commit e206b2841a

View File

@@ -1386,6 +1386,12 @@ public final class AbilityFactory_ChangeZone {
// Exile and bounce opponents stuff
if (destination.equals(Zone.Exile) || origin.equals(Zone.Battlefield)) {
//don't rush bouncing stuff when not going to attack
if(AllZone.getPhase().isBefore(Constant.Phase.MAIN2) && AllZone.getPhase().isPlayerTurn(AllZone.getComputerPlayer())
&& AllZoneUtil.getCreaturesInPlay(AllZone.getComputerPlayer()).isEmpty()) {
return false;
}
list = list.getController(AllZone.getHumanPlayer());
}