forked from External/mage
* Fix text: Invigorate (fixes #8708) - override * Fix text: sacrifice multiple permanents (as cost) * Fix text: Coral Colony - override and add hint * Fix text: Corpse Harvester (fixes #7837) - override * Fix text: Solitary Camel, Sidewinder Naga * Fix text: Malicious Advice * Fix text: Ray of Command * Fix text: Retreat to Hagra * Fix reminder text for "End the turn." * Fix text: Elspeth, Undaunted Hero * Fix text: Gideon, Champion of Justice * Fix text generation for condition: no counters * Fix text: PhantasmalSphere * Fix text: Retaliation * Fix text generation for additional cost: discard X cards * Fix text: Soul Separator * Fix text: Thundermaw Hellkite * Fix text: Torment of Hailfire * Fix text: Twilight Prophet * Fix text: ETB cantrips next turn's upkeep * Fix text: Venser's Journal
32 lines
944 B
Java
32 lines
944 B
Java
|
|
package mage.abilities.effects.common;
|
|
|
|
import mage.abilities.Ability;
|
|
import mage.abilities.effects.OneShotEffect;
|
|
import mage.constants.Outcome;
|
|
import mage.game.Game;
|
|
|
|
public class EndTurnEffect extends OneShotEffect {
|
|
|
|
public EndTurnEffect() {
|
|
super(Outcome.Detriment);
|
|
staticText = "End the turn. <i>(Exile all spells and abilities from the stack, including this card. The player whose turn it is discards down to their maximum hand size. Damage wears off, and \"this turn\" and \"until end of turn\" effects end.)</i>";
|
|
}
|
|
|
|
public EndTurnEffect(EndTurnEffect effect) {
|
|
super(effect);
|
|
}
|
|
|
|
@Override
|
|
public boolean apply(Game game, Ability source) {
|
|
if (!game.isSimulation()) {
|
|
game.informPlayers("The current turn ends");
|
|
}
|
|
return game.endTurn(source);
|
|
}
|
|
|
|
@Override
|
|
public EndTurnEffect copy() {
|
|
return new EndTurnEffect(this);
|
|
}
|
|
}
|