use of mage.game.turn.TurnMod in project mage by magefree.
the class HellkiteChargerEffect method apply.
@Override
public boolean apply(Game game, Ability source) {
Player player = game.getPlayer(source.getControllerId());
if (player != null) {
ManaCosts cost = new ManaCostsImpl("{5}{R}{R}");
if (player.chooseUse(Outcome.Damage, "Pay " + cost.getText() + '?', source, game)) {
cost.clearPaid();
if (cost.pay(source, game, source, source.getControllerId(), false, null)) {
new UntapAllControllerEffect(new FilterAttackingCreature(), "").apply(game, source);
game.getState().getTurnMods().add(new TurnMod(source.getControllerId(), TurnPhase.COMBAT, null, false));
return true;
}
}
}
return false;
}
use of mage.game.turn.TurnMod in project mage by magefree.
the class KarnsTemporalSunderingEffect method apply.
@Override
public boolean apply(Game game, Ability source) {
Player controller = game.getPlayer(source.getControllerId());
if (controller == null) {
return false;
}
game.getState().getTurnMods().add(new TurnMod(source.getTargets().getFirstTarget(), false));
Permanent returnPermanent = game.getPermanent(source.getTargets().get(1).getFirstTarget());
if (returnPermanent != null) {
controller.moveCards(returnPermanent, Zone.HAND, source, game);
}
return true;
}
use of mage.game.turn.TurnMod in project mage by magefree.
the class TeferiMasterOfTimeTurnEffect method apply.
@Override
public boolean apply(Game game, Ability source) {
game.getState().getTurnMods().add(new TurnMod(source.getControllerId(), false));
game.getState().getTurnMods().add(new TurnMod(source.getControllerId(), false));
return true;
}
use of mage.game.turn.TurnMod in project mage by magefree.
the class MomirGame method init.
@Override
protected void init(UUID choosingPlayerId) {
Ability ability = new SimpleStaticAbility(Zone.COMMAND, new InfoEffect("Vanguard effects"));
for (UUID playerId : state.getPlayerList(startingPlayerId)) {
Player player = getPlayer(playerId);
if (player != null) {
CardInfo cardInfo = CardRepository.instance.findCard("Momir Vig, Simic Visionary");
addEmblem(new MomirEmblem(), cardInfo.getCard(), playerId);
}
}
getState().addAbility(ability, null);
super.init(choosingPlayerId);
state.getTurnMods().add(new TurnMod(startingPlayerId, PhaseStep.DRAW));
}
use of mage.game.turn.TurnMod in project mage by magefree.
the class TwoPlayerDuel method init.
@Override
protected void init(UUID choosingPlayerId) {
super.init(choosingPlayerId);
state.getTurnMods().add(new TurnMod(startingPlayerId, PhaseStep.DRAW));
}
Aggregations