mirror of
https://github.com/correl/mage.git
synced 2025-01-11 19:13:02 +00:00
Removed flying blocking restriction effect duplication
This commit is contained in:
parent
f6ef3fdd89
commit
9fa5d58174
1 changed files with 7 additions and 1 deletions
|
@ -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())) {
|
||||
|
|
Loading…
Reference in a new issue