mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 10:40:06 -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:
|
case BEGIN_COMBAT:
|
||||||
return game.playBeginCombatStep(activePlayerId);
|
return game.playBeginCombatStep(activePlayerId);
|
||||||
case DECLARE_ATTACKERS:
|
case DECLARE_ATTACKERS:
|
||||||
return game.playDeclareAttackersStep(activePlayerId);
|
if (game.getPlayer(activePlayerId).hasAvailableAttackers(game))
|
||||||
|
return game.playDeclareAttackersStep(activePlayerId);
|
||||||
|
return false;
|
||||||
case DECLARE_BLOCKERS:
|
case DECLARE_BLOCKERS:
|
||||||
if (!game.getCombat().noAttackers())
|
if (!game.getCombat().noAttackers())
|
||||||
return game.playDeclareBlockersStep(activePlayerId);
|
return game.playDeclareBlockersStep(activePlayerId);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue