From ff3d9d463a4b4d40239865fe422193bdf5b06956 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Tue, 13 Aug 2013 11:24:53 +0200 Subject: [PATCH] [Minor] Formatting, comments. --- Mage/src/mage/abilities/keyword/FlyingAbility.java | 3 ++- Mage/src/mage/util/CardUtil.java | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Mage/src/mage/abilities/keyword/FlyingAbility.java b/Mage/src/mage/abilities/keyword/FlyingAbility.java index 49a006b671..bf9051d505 100644 --- a/Mage/src/mage/abilities/keyword/FlyingAbility.java +++ b/Mage/src/mage/abilities/keyword/FlyingAbility.java @@ -90,8 +90,9 @@ class FlyingEffect extends RestrictionEffect implements MageSingle @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())) + if (blocker.getAbilities().containsKey(FlyingAbility.getInstance().getId()) || blocker.getAbilities().containsKey(ReachAbility.getInstance().getId())) { return true; + } return false; } diff --git a/Mage/src/mage/util/CardUtil.java b/Mage/src/mage/util/CardUtil.java index 65f23981a3..1ca34d3f51 100644 --- a/Mage/src/mage/util/CardUtil.java +++ b/Mage/src/mage/util/CardUtil.java @@ -387,7 +387,9 @@ public class CardUtil { } /** - * Creates a string from text + cardId and the zoneChangeCounter of the card (from cardId) + * Creates a string from text + cardId and the zoneChangeCounter of the card (from cardId). + * This string can be used to save and get values that must be specific to a permanent instance. + * So they won't match, if a permanent was e.g. exiled and came back immediately. * * @param text * @param cardId