From a4087b5e4d690ce133fd3318cefc78255d3912fa Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Tue, 14 Oct 2014 08:11:45 +0200 Subject: [PATCH] * Academy Rector - minor changes. --- .../mage/sets/urzasdestiny/AcademyRector.java | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/Mage.Sets/src/mage/sets/urzasdestiny/AcademyRector.java b/Mage.Sets/src/mage/sets/urzasdestiny/AcademyRector.java index a132577fea6..36715d6c2a3 100644 --- a/Mage.Sets/src/mage/sets/urzasdestiny/AcademyRector.java +++ b/Mage.Sets/src/mage/sets/urzasdestiny/AcademyRector.java @@ -96,21 +96,19 @@ class AcademyRectorEffect extends OneShotEffect { @Override public boolean apply(Game game, Ability source) { - boolean applied = false; - Player you = game.getPlayer(source.getControllerId()); - if (you != null) { + Player controller = game.getPlayer(source.getControllerId()); + if (controller != null) { TargetCardInLibrary target = new TargetCardInLibrary(filter); target.setNotTarget(true); - you.searchLibrary(target, game); + controller.searchLibrary(target, game); Card targetCard = game.getCard(target.getFirstTarget()); - if (targetCard == null) { - applied = false; - } else{ - applied = you.putOntoBattlefieldWithInfo(targetCard, game, Zone.LIBRARY, source.getSourceId()); - you.shuffleLibrary(game); + if (targetCard != null) { + controller.putOntoBattlefieldWithInfo(targetCard, game, Zone.LIBRARY, source.getSourceId()); } + controller.shuffleLibrary(game); + return true; } - return applied; + return false; } @Override