mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18: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>();
|
||||
if (atk == playerWhoAttacks) {
|
||||
for (Player defender : getDefendingPlayers()) {
|
||||
CardCollection attackers = getAttackersOf(defender);
|
||||
if (attackers.isEmpty()) {
|
||||
continue;
|
||||
if (!getAttackersOf(defender).isEmpty()) {
|
||||
attackedOpps.add(defender);
|
||||
}
|
||||
attackedOpps.add(defender);
|
||||
}
|
||||
}
|
||||
return attackedOpps;
|
||||
|
||||
Reference in New Issue
Block a user