Removed flying blocking restriction effect duplication

This commit is contained in:
magenoxx 2012-05-03 08:32:27 +04:00
parent f6ef3fdd89
commit 9fa5d58174

View file

@ -28,7 +28,6 @@
package mage.abilities.keyword;
import java.io.ObjectStreamException;
import mage.Constants.Duration;
import mage.abilities.Ability;
import mage.abilities.EvasionAbility;
@ -36,6 +35,8 @@ import mage.abilities.effects.RestrictionEffect;
import mage.game.Game;
import mage.game.permanent.Permanent;
import java.io.ObjectStreamException;
/**
*
* @author BetaSteward_at_googlemail.com
@ -78,6 +79,11 @@ class FlyingEffect extends RestrictionEffect<FlyingEffect> {
super(effect);
}
@Override
public void newId() {
// do nothing
}
@Override
public boolean applies(Permanent permanent, Ability source, Game game) {
if (permanent.getAbilities().containsKey(FlyingAbility.getInstance().getId())) {