skip Declare Attackers step if no available attackers

This commit is contained in:
BetaSteward 2010-04-16 03:44:12 +00:00
parent 32c27cd8cb
commit 978f697f41

View file

@ -62,7 +62,9 @@ public class Step implements Serializable {
case BEGIN_COMBAT:
return game.playBeginCombatStep(activePlayerId);
case DECLARE_ATTACKERS:
return game.playDeclareAttackersStep(activePlayerId);
if (game.getPlayer(activePlayerId).hasAvailableAttackers(game))
return game.playDeclareAttackersStep(activePlayerId);
return false;
case DECLARE_BLOCKERS:
if (!game.getCombat().noAttackers())
return game.playDeclareBlockersStep(activePlayerId);