mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
Minor formatting.
This commit is contained in:
parent
2b78cbf958
commit
9dc1120500
1 changed files with 2 additions and 8 deletions
|
@ -82,18 +82,12 @@ class FlyingEffect extends RestrictionEffect<FlyingEffect> implements MageSingle
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean applies(Permanent permanent, Ability source, Game game) {
|
public boolean applies(Permanent permanent, Ability source, Game game) {
|
||||||
if (permanent.getAbilities().containsKey(FlyingAbility.getInstance().getId())) {
|
return permanent.getAbilities().containsKey(FlyingAbility.getInstance().getId());
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean canBeBlocked(Permanent attacker, Permanent blocker, Ability source, Game game) {
|
public boolean canBeBlocked(Permanent attacker, Permanent blocker, Ability source, Game game) {
|
||||||
if (blocker.getAbilities().containsKey(FlyingAbility.getInstance().getId()) || blocker.getAbilities().containsKey(ReachAbility.getInstance().getId())) {
|
return blocker.getAbilities().containsKey(FlyingAbility.getInstance().getId()) || blocker.getAbilities().containsKey(ReachAbility.getInstance().getId());
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue