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);
|
declareAttacker(card);
|
||||||
if (otherCardsToSelect != null) {
|
if (otherCardsToSelect != null) {
|
||||||
for (Card c : otherCardsToSelect) {
|
for (Card c : otherCardsToSelect) {
|
||||||
|
if (activeBand.canJoinBand(c)) {
|
||||||
declareAttacker(c);
|
declareAttacker(c);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
validAction = false;
|
validAction = false;
|
||||||
}
|
}
|
||||||
@@ -220,9 +222,11 @@ public class InputAttack extends InputSyncronizedBase {
|
|||||||
declareAttacker(card);
|
declareAttacker(card);
|
||||||
if (otherCardsToSelect != null) {
|
if (otherCardsToSelect != null) {
|
||||||
for (Card c : otherCardsToSelect) {
|
for (Card c : otherCardsToSelect) {
|
||||||
|
if (CombatUtil.canAttack(c, currentDefender)) {
|
||||||
declareAttacker(c);
|
declareAttacker(c);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
updateMessage();
|
updateMessage();
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user