* Removed redundant applies check.
package mage.game.permanent;
+import java.util.*;
import mage.MageObject;
import mage.MageObjectReference;
import mage.ObjectColor;
@@ -37,8 +38,6 @@ import mage.util.GameLog;
import mage.util.ThreadLocalStringBuilder;
import org.apache.log4j.Logger;
-import java.util.*;
-
/**
* @author BetaSteward_at_googlemail.com
*/
@@ -269,10 +268,6 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
if (game != null && HintUtils.RESTRICT_HINTS_ENABLE) {
for (Map.Entry<RestrictionEffect, Set<Ability>> entry : game.getContinuousEffects().getApplicableRestrictionEffects(this, game).entrySet()) {
for (Ability ability : entry.getValue()) {
- if (!entry.getKey().applies(this, ability, game)) {
- continue;
- }
-
if (!entry.getKey().canAttack(game, false) || !entry.getKey().canAttack(this, null, ability, game, false)) {
restrictHints.add(HintUtils.prepareText("Can't attack" + addSourceObjectName(game, ability), null, HintUtils.HINT_ICON_RESTRICT));
}
