mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
Prevent using Shift+click to attack with cards that have summoning sickness
This commit is contained in:
@@ -180,10 +180,12 @@ public class InputAttack extends InputSyncronizedBase {
|
||||
declareAttacker(card);
|
||||
if (otherCardsToSelect != null) {
|
||||
for (Card c : otherCardsToSelect) {
|
||||
if (activeBand.canJoinBand(c)) {
|
||||
declareAttacker(c);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
validAction = false;
|
||||
}
|
||||
@@ -220,9 +222,11 @@ public class InputAttack extends InputSyncronizedBase {
|
||||
declareAttacker(card);
|
||||
if (otherCardsToSelect != null) {
|
||||
for (Card c : otherCardsToSelect) {
|
||||
if (CombatUtil.canAttack(c, currentDefender)) {
|
||||
declareAttacker(c);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
updateMessage();
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user