mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08: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…
Add table
Add a link
Reference in a new issue