* Fixed that putting copies of a card to graveyard triggered abilities that should only trigger from cards (not copies of a card) to the graveyard.

This commit is contained in:
LevelX2 2016-02-14 09:43:14 +01:00
parent 4653864c5e
commit ccf5da9521

View file

@ -106,7 +106,9 @@ public class PutCardIntoGraveFromAnywhereAllTriggeredAbility extends TriggeredAb
public boolean checkTrigger(GameEvent event, Game game) { public boolean checkTrigger(GameEvent event, Game game) {
if (((ZoneChangeEvent) event).getToZone() == Zone.GRAVEYARD) { if (((ZoneChangeEvent) event).getToZone() == Zone.GRAVEYARD) {
Card card = game.getCard(event.getTargetId()); Card card = game.getCard(event.getTargetId());
if (card != null && filter.match(card, getSourceId(), getControllerId(), game)) { if (card != null
&& !card.isCopy()
&& filter.match(card, getSourceId(), getControllerId(), game)) {
switch (setTargetPointer) { switch (setTargetPointer) {
case CARD: case CARD:
for (Effect effect : getEffects()) { for (Effect effect : getEffects()) {