* Fixed typos of Archmage Ascension and LookLibraryControllerEffect.

This commit is contained in:
LevelX2 2015-05-03 23:44:10 +02:00
parent 282f600749
commit 880fab9014
2 changed files with 4 additions and 11 deletions

View file

@ -38,7 +38,6 @@ import mage.constants.*;
import mage.counters.CounterType; import mage.counters.CounterType;
import mage.game.Game; import mage.game.Game;
import mage.game.events.GameEvent; import mage.game.events.GameEvent;
import mage.game.events.GameEvent.EventType;
import mage.game.permanent.Permanent; import mage.game.permanent.Permanent;
import mage.players.Player; import mage.players.Player;
import mage.target.common.TargetCardInLibrary; import mage.target.common.TargetCardInLibrary;
@ -100,10 +99,7 @@ class ArchmageAscensionTriggeredAbility extends TriggeredAbilityImpl {
public boolean checkTrigger(GameEvent event, Game game) { public boolean checkTrigger(GameEvent event, Game game) {
Permanent archmage = game.getPermanent(super.getSourceId()); Permanent archmage = game.getPermanent(super.getSourceId());
CardsDrawnControllerWatcher watcher = (CardsDrawnControllerWatcher) game.getState().getWatchers().get("CardsControllerDrawn"); CardsDrawnControllerWatcher watcher = (CardsDrawnControllerWatcher) game.getState().getWatchers().get("CardsControllerDrawn");
if (archmage != null && watcher != null && watcher.conditionMet()) { return archmage != null && watcher != null && watcher.conditionMet();
return true;
}
return false;
} }
@Override @Override
@ -194,13 +190,10 @@ class ArchmageAscensionReplacementEffect extends ReplacementEffectImpl {
public boolean applies(GameEvent event, Ability source, Game game) { public boolean applies(GameEvent event, Ability source, Game game) {
Permanent archmage = game.getPermanent(source.getSourceId()); Permanent archmage = game.getPermanent(source.getSourceId());
Player you = game.getPlayer(source.getControllerId()); Player you = game.getPlayer(source.getControllerId());
if (event.getPlayerId().equals(source.getControllerId()) return event.getPlayerId().equals(source.getControllerId())
&& archmage != null && archmage != null
&& archmage.getCounters().getCount(CounterType.QUEST) >= 6 && archmage.getCounters().getCount(CounterType.QUEST) >= 6
&& you != null && you != null
&& you.chooseUse(Outcome.Benefit, "Would you like to search you library instead of drawing a card?", game)) { && you.chooseUse(Outcome.Benefit, "Would you like to search your library instead of drawing a card?", game);
return true;
}
return false;
} }
} }

View file

@ -200,7 +200,7 @@ public class LookLibraryControllerEffect extends OneShotEffect {
* @param game * @param game
*/ */
protected void mayShuffle(Player player, Game game) { protected void mayShuffle(Player player, Game game) {
if (this.mayShuffleAfter && player.chooseUse(Outcome.Benefit, "Shuffle you library?", game)) { if (this.mayShuffleAfter && player.chooseUse(Outcome.Benefit, "Shuffle your library?", game)) {
player.shuffleLibrary(game); player.shuffleLibrary(game);
} }
} }