mirror of
https://github.com/correl/mage.git
synced 2025-01-12 03:00:13 +00:00
skip Declare Attackers step if no available attackers
This commit is contained in:
parent
32c27cd8cb
commit
978f697f41
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue