Some minor fixes and changes to framework and some cards.

This commit is contained in:
LevelX2 2014-04-18 16:04:08 +02:00
parent ea52da66c6
commit eeee6df026
2 changed files with 11 additions and 2 deletions

View file

@ -100,7 +100,7 @@ class PsychicStrikeEffect extends OneShotEffect<PsychicStrikeEffect> {
for (int i = 0; i < cardsCount; i++) {
Card card = controller.getLibrary().removeFromTop(game);
if (card != null) {
card.moveToZone(Zone.GRAVEYARD, source.getId(), game, false);
controller.moveCardToGraveyardWithInfo(card, source.getSourceId(), game, Zone.LIBRARY);
}
}
}

View file

@ -28,6 +28,7 @@
package mage.abilities.keyword;
import mage.abilities.EvasionAbility;
import mage.abilities.effects.Effect;
import mage.abilities.effects.common.combat.UnblockableSourceEffect;
/**
@ -36,7 +37,15 @@ import mage.abilities.effects.common.combat.UnblockableSourceEffect;
public class UnblockableAbility extends EvasionAbility<UnblockableAbility> {
public UnblockableAbility() {
this.addEffect(new UnblockableSourceEffect());
this("");
}
public UnblockableAbility(String ruleText) {
Effect effect = new UnblockableSourceEffect();
if (ruleText != null && !ruleText.isEmpty()) {
effect.setText(ruleText);
}
this.addEffect(effect);
}
private UnblockableAbility(UnblockableAbility ability) {