Prevent using Shift+click to attack with cards that have summoning sickness

This commit is contained in:
drdev
2014-11-27 03:55:33 +00:00
parent 2b4cba7e14
commit 4990887b98

View File

@@ -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;