mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Make it impossible to undeclare attackers with "CARDNAME attacks each combat if able" at will.
This commit is contained in:
@@ -246,6 +246,7 @@ public class InputAttack extends InputSyncronizedBase {
|
|||||||
|
|
||||||
private boolean canUndeclareAttacker(Card card) {
|
private boolean canUndeclareAttacker(Card card) {
|
||||||
return !card.hasKeyword("CARDNAME attacks each turn if able.") &&
|
return !card.hasKeyword("CARDNAME attacks each turn if able.") &&
|
||||||
|
!card.hasKeyword("CARDNAME attacks each combat if able.") &&
|
||||||
!card.hasStartOfKeyword("CARDNAME attacks specific player each combat if able") &&
|
!card.hasStartOfKeyword("CARDNAME attacks specific player each combat if able") &&
|
||||||
card.getController().getMustAttackEntity() == null;
|
card.getController().getMustAttackEntity() == null;
|
||||||
}
|
}
|
||||||
@@ -313,6 +314,6 @@ public class InputAttack extends InputSyncronizedBase {
|
|||||||
showMessage(message);
|
showMessage(message);
|
||||||
|
|
||||||
updatePrompt();
|
updatePrompt();
|
||||||
MatchUtil.getController().showCombat(getController().getCombat()); // redraw sword icons
|
MatchUtil.getController().showCombat(getController().getCombat()); // redraw sword icons
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user