mirror of
https://github.com/correl/mage.git
synced 2024-12-27 20:06:31 +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
|
@Override
|
||||||
public boolean apply(Permanent input, Game game) {
|
public boolean apply(Permanent input, Game game) {
|
||||||
CombatGroup combatGroup = game.getCombat().findGroup(input.getId());
|
CombatGroup combatGroup = game.getCombat().findGroup(input.getId());
|
||||||
if (combatGroup != null) {
|
return combatGroup != null
|
||||||
return input.isAttacking()
|
&& input.isAttacking()
|
||||||
&& input.getBandedCards().isEmpty()
|
&& input.getBandedCards().isEmpty()
|
||||||
&& combatGroup.getDefenderId().equals(defenderId);
|
&& combatGroup.getDefenderId().equals(defenderId);
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue