Fixed some effects apply return value. Some changes to game logging.

This commit is contained in:
LevelX2 2014-07-23 08:11:11 +02:00
parent 9fb718c0c0
commit 03b51d1f34
8 changed files with 16 additions and 12 deletions

View file

@ -89,6 +89,7 @@ public class CounterUnlessPaysEffect extends OneShotEffect {
if (!costToPay.pay(source, game, spell.getSourceId(), spell.getControllerId(), false)) {
return game.getStack().counter(spell.getId(), source.getSourceId(), game);
}
return true;
}
}
return false;

View file

@ -66,7 +66,7 @@ class PersistEffect extends OneShotEffect {
@Override
public boolean apply(Game game, Ability source) {
game.addEffect(new PersistReplacementEffect(), source);
return false;
return true;
}
}

View file

@ -313,7 +313,6 @@ class SuspendPlayCardEffect extends OneShotEffect {
@Override
public boolean apply(Game game, Ability source) {
Player player = game.getPlayer(source.getControllerId());
Card card = game.getCard(source.getSourceId());
if (player != null && card != null) {
@ -340,7 +339,7 @@ class SuspendPlayCardEffect extends OneShotEffect {
card.getAbilities().removeAll(abilitiesToRemove);
}
// cast the card for free
player.cast(card.getSpellAbility(), game, true);
return player.cast(card.getSpellAbility(), game, true);
}
return false;
}