Fixed that Lazav, Dimir Mastermind's ability also triggers if a card not coming from battlefield goes to graveyard. Little text improvement for Dimir Charm.

This commit is contained in:
LevelX2 2013-02-09 00:01:29 +01:00
parent ec75e92c7d
commit ba296f2528
2 changed files with 5 additions and 6 deletions

View file

@ -132,7 +132,7 @@ class DimirCharmEffect extends OneShotEffect {
}
if(cards.size() > 0){
TargetCard target = new TargetCard(Constants.Zone.PICK, new FilterCard("Card to put on top"));
TargetCard target = new TargetCard(Constants.Zone.PICK, new FilterCard("Card to put back on top of library"));
target.setRequired(true);
if(controller.choose(Outcome.Neutral, cards, target, game)){
Card card = cards.get(target.getFirstTarget(), game);

View file

@ -102,15 +102,14 @@ class CreatureCardPutOpponentGraveyardTriggeredAbility extends TriggeredAbilityI
public boolean checkTrigger(GameEvent event, Game game) {
if (event.getType() == EventType.ZONE_CHANGE
&& ((ZoneChangeEvent) event).getToZone() == Zone.GRAVEYARD) {
MageObject object = game.getLastKnownInformation(event.getTargetId(), Zone.BATTLEFIELD);
if (object == null) {
Card card = game.getCard(event.getTargetId());
if (card == null) {
return false;
}
if (game.getOpponents(controllerId).contains(event.getPlayerId())
&& object.getCardType().contains(CardType.CREATURE)
&& (!(object instanceof PermanentToken))) {
&& card.getCardType().contains(CardType.CREATURE)) {
for (Effect effect : this.getEffects()) {
effect.setTargetPointer(new FixedTarget(object.getId()));
effect.setTargetPointer(new FixedTarget(card.getId()));
}
return true;
}