Minor formatting.

This commit is contained in:
LevelX2 2014-01-21 13:41:54 +01:00
parent 2b78cbf958
commit 9dc1120500

View file

@ -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