Minor formatting.

This commit is contained in:
LevelX2 2013-10-01 14:39:38 +02:00
parent 721a411aad
commit 19714312cd
3 changed files with 12 additions and 6 deletions

View file

@ -114,10 +114,12 @@ class PastInFlamesEffect extends ContinuousEffectImpl<PastInFlamesEffect> {
if (objects.contains(cardId)) {
Card card = game.getCard(cardId);
FlashbackAbility ability = null;
if (card.getCardType().contains(CardType.INSTANT))
if (card.getCardType().contains(CardType.INSTANT)) {
ability = new FlashbackAbility(card.getManaCost(), TimingRule.INSTANT);
else if (card.getCardType().contains(CardType.SORCERY))
}
else if (card.getCardType().contains(CardType.SORCERY)) {
ability = new FlashbackAbility(card.getManaCost(), TimingRule.SORCERY);
}
if (ability != null) {
ability.setSourceId(cardId);
ability.setControllerId(card.getOwnerId());

View file

@ -122,10 +122,12 @@ class SnapcasterMageEffect extends ContinuousEffectImpl<SnapcasterMageEffect> {
MageObject sourceObject = game.getObject(source.getSourceId());
if (card != null && sourceObject != null) {
FlashbackAbility ability;
if (card.getCardType().contains(CardType.INSTANT))
if (card.getCardType().contains(CardType.INSTANT)) {
ability = new FlashbackAbility(card.getManaCost(), TimingRule.INSTANT);
else
}
else {
ability = new FlashbackAbility(card.getManaCost(), TimingRule.SORCERY);
}
ability.setSourceId(card.getId());
ability.setControllerId(card.getOwnerId());
game.getState().addOtherAbility(card.getId(), ability);

View file

@ -53,10 +53,12 @@ public class FirstCombatDamageStep extends Step<FirstCombatDamageStep> {
@Override
public boolean skipStep(Game game, UUID activePlayerId) {
if (game.getCombat().noAttackers())
if (game.getCombat().noAttackers()) {
return true;
if (!game.getCombat().hasFirstOrDoubleStrike(game))
}
if (!game.getCombat().hasFirstOrDoubleStrike(game)) {
return true;
}
return super.skipStep(game, activePlayerId);
}