forked from External/mage
[refactoring][minor] Replaced all tabs with four spaces.
This commit is contained in:
parent
e646e4768d
commit
239a4fb100
2891 changed files with 79411 additions and 79411 deletions
|
|
@ -40,29 +40,29 @@ import mage.players.Player;
|
|||
*/
|
||||
public class DrawDiscardControllerEffect extends OneShotEffect<DrawDiscardControllerEffect> {
|
||||
|
||||
public DrawDiscardControllerEffect() {
|
||||
super(Outcome.DrawCard);
|
||||
staticText = "Draw a card, then discard a card";
|
||||
}
|
||||
public DrawDiscardControllerEffect() {
|
||||
super(Outcome.DrawCard);
|
||||
staticText = "Draw a card, then discard a card";
|
||||
}
|
||||
|
||||
public DrawDiscardControllerEffect(final DrawDiscardControllerEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
public DrawDiscardControllerEffect(final DrawDiscardControllerEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DrawDiscardControllerEffect copy() {
|
||||
return new DrawDiscardControllerEffect(this);
|
||||
}
|
||||
@Override
|
||||
public DrawDiscardControllerEffect copy() {
|
||||
return new DrawDiscardControllerEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player player = game.getPlayer(source.getControllerId());
|
||||
if (player != null) {
|
||||
player.drawCards(1, game);
|
||||
player.discard(1, source, game);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player player = game.getPlayer(source.getControllerId());
|
||||
if (player != null) {
|
||||
player.drawCards(1, game);
|
||||
player.discard(1, source, game);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue