diff --git a/Mage/src/mage/abilities/effects/common/CantCounterSourceEffect.java b/Mage/src/mage/abilities/effects/common/CantCounterSourceEffect.java index d284a72b807..5326892a04f 100644 --- a/Mage/src/mage/abilities/effects/common/CantCounterSourceEffect.java +++ b/Mage/src/mage/abilities/effects/common/CantCounterSourceEffect.java @@ -71,8 +71,9 @@ public class CantCounterSourceEffect extends ReplacementEffectImpl { top = this.peek(); top.resolve(game); } finally { - if (top != null) + if (top != null) { this.remove(top); + } } } @@ -89,11 +90,13 @@ public class SpellStack extends ArrayDeque { public StackObject getStackObject(UUID id) { for (StackObject stackObject: this) { UUID objectId = stackObject.getId(); - if (objectId.equals(id)) + if (objectId.equals(id)) { return stackObject; + } UUID sourceId = stackObject.getSourceId(); - if (sourceId.equals(id)) + if (sourceId.equals(id)) { return stackObject; + } } return null; } @@ -101,10 +104,12 @@ public class SpellStack extends ArrayDeque { public Spell getSpell(UUID id) { for (StackObject stackObject: this) { if (stackObject.getId().equals(id)) { - if (stackObject instanceof Spell) + if (stackObject instanceof Spell) { return (Spell)stackObject; - else + } + else { return null; + } } } return null;