mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
Small rewrite
This commit is contained in:
parent
e7301e2c08
commit
c37ecff939
1 changed files with 2 additions and 4 deletions
|
@ -49,11 +49,9 @@ public class AttackingSameNotBandedPredicate implements Predicate<Permanent> {
|
|||
@Override
|
||||
public boolean apply(Permanent input, Game game) {
|
||||
CombatGroup combatGroup = game.getCombat().findGroup(input.getId());
|
||||
if (combatGroup != null) {
|
||||
return input.isAttacking()
|
||||
return combatGroup != null
|
||||
&& input.isAttacking()
|
||||
&& input.getBandedCards().isEmpty()
|
||||
&& combatGroup.getDefenderId().equals(defenderId);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue