mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
Combat getAttackedOpponents streamline a bit more
This commit is contained in:
@@ -205,11 +205,9 @@ public class Combat {
|
|||||||
FCollection<Player> attackedOpps = new FCollection<Player>();
|
FCollection<Player> attackedOpps = new FCollection<Player>();
|
||||||
if (atk == playerWhoAttacks) {
|
if (atk == playerWhoAttacks) {
|
||||||
for (Player defender : getDefendingPlayers()) {
|
for (Player defender : getDefendingPlayers()) {
|
||||||
CardCollection attackers = getAttackersOf(defender);
|
if (!getAttackersOf(defender).isEmpty()) {
|
||||||
if (attackers.isEmpty()) {
|
attackedOpps.add(defender);
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
attackedOpps.add(defender);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return attackedOpps;
|
return attackedOpps;
|
||||||
|
|||||||
Reference in New Issue
Block a user