Some minor changes.

This commit is contained in:
LevelX2 2015-08-02 10:59:03 +02:00
parent d673f3e4b1
commit eccc367920
3 changed files with 5 additions and 3 deletions

View file

@ -100,7 +100,7 @@ class YixlidJailerEffect extends ContinuousEffectImpl {
if (player != null) {
for (Card card : player.getGraveyard().getCards(game)) {
if (card != null) {
card.getAbilities().clear(); // Will the abilities ever come back????
card.getAbilities(game).clear(); // Will the abilities ever come back????
// TODO: Fix that (LevelX2)
// game.getContinuousEffects().removeGainedEffectsForSource(card.getId());
// game.getState().resetTriggersForSourceId(card.getId());
@ -127,4 +127,4 @@ class YixlidJailerEffect extends ContinuousEffectImpl {
public boolean hasLayer(Layer layer) {
return layer == Layer.AbilityAddingRemovingEffects_6;
}
}
}

View file

@ -134,7 +134,7 @@ class OpponentGainControlEffect extends ContinuousEffectImpl {
}
Player targetOpponent = game.getPlayer(opponentId);
if (targetOpponent != null && permanent != null) {
game.informPlayers(permanent.getName() + " is now controlled by " + targetOpponent.getLogName());
game.informPlayers(permanent.getLogName() + " is now controlled by " + targetOpponent.getLogName());
} else {
discard();
}

View file

@ -346,6 +346,8 @@ public class ManaOptionsTest extends CardTestPlayerBase {
Assert.assertEquals("{B}{B}", getManaOption(0, manaOptions));
}
// TODO
// Test Calciform Pools combination mana lands
private String getManaOption(int index, ManaOptions manaOptions) {
if (manaOptions.size() < index + 1) {
return "";