From 9dc1120500ef3252a5aeaf4e6c9e42273ab0ace6 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Tue, 21 Jan 2014 13:41:54 +0100 Subject: [PATCH] Minor formatting. --- Mage/src/mage/abilities/keyword/FlyingAbility.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Mage/src/mage/abilities/keyword/FlyingAbility.java b/Mage/src/mage/abilities/keyword/FlyingAbility.java index 7a7099fb2e..b3410d1cd8 100644 --- a/Mage/src/mage/abilities/keyword/FlyingAbility.java +++ b/Mage/src/mage/abilities/keyword/FlyingAbility.java @@ -82,18 +82,12 @@ class FlyingEffect extends RestrictionEffect 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