Minor usability improvement

This commit is contained in:
Zzooouhh 2017-11-21 17:22:36 +01:00 committed by GitHub
parent 82aae29fbc
commit 5c8c77cd28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -156,9 +156,8 @@ class RagingRiverEffect extends OneShotEffect {
FilterCreaturePermanent filter = new FilterCreaturePermanent();
Player defender = game.getPlayer(combatGroup.getDefendingPlayerId());
if (defender != null) {
if (left.isEmpty() && right.isEmpty() && game.getOpponents(controller.getId()).size() < 2) {
// shortcut in case of a single opponent not having any creatures (since he has no further way of acquiring blockers with left/right labels,
// and Portal Mage can't potentially redirect the creature into an opponent with labeled blockers)
if (left.isEmpty() && right.isEmpty()) {
// shortcut in case of no labeled blockers available
filter.add(Predicates.not(new AbilityPredicate(FlyingAbility.class)));
} else {
List<Permanent> leftLog = new ArrayList<>();