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
public boolean applies(Permanent permanent, Ability source, Game game) {
if (permanent.getAbilities().containsKey(FlyingAbility.getInstance().getId())) {
return true;
}
return false;
return permanent.getAbilities().containsKey(FlyingAbility.getInstance().getId());
}
@Override
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 true;
}
return false;
return blocker.getAbilities().containsKey(FlyingAbility.getInstance().getId()) || blocker.getAbilities().containsKey(ReachAbility.getInstance().getId());
}
@Override