mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
[SWS] Fixed March of the Droids.
This commit is contained in:
parent
86648c7190
commit
210bbeeda7
2 changed files with 99 additions and 7 deletions
|
|
@ -34,7 +34,6 @@ import mage.constants.Outcome;
|
|||
import mage.game.Game;
|
||||
import mage.players.Player;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Quercitron
|
||||
|
|
@ -45,7 +44,7 @@ public class LookAtTargetPlayerHandEffect extends OneShotEffect {
|
|||
super(Outcome.Benefit);
|
||||
this.staticText = "Look at target player's hand";
|
||||
}
|
||||
|
||||
|
||||
public LookAtTargetPlayerHandEffect(final LookAtTargetPlayerHandEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
|
@ -54,17 +53,17 @@ public class LookAtTargetPlayerHandEffect extends OneShotEffect {
|
|||
public LookAtTargetPlayerHandEffect copy() {
|
||||
return new LookAtTargetPlayerHandEffect(this);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player you = game.getPlayer(source.getControllerId());
|
||||
Player targetPlayer = game.getPlayer(source.getFirstTarget());
|
||||
MageObject sourceObject = game.getObject(source.getSourceId());
|
||||
if (you != null && targetPlayer != null) {
|
||||
you.lookAtCards(sourceObject != null ? sourceObject.getName() : null, targetPlayer.getHand(), game);
|
||||
you.lookAtCards(sourceObject != null ? sourceObject.getIdName() : null, targetPlayer.getHand(), game);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue