mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
* 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:
parent
4653864c5e
commit
ccf5da9521
1 changed files with 3 additions and 1 deletions
|
@ -106,7 +106,9 @@ public class PutCardIntoGraveFromAnywhereAllTriggeredAbility extends TriggeredAb
|
|||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
if (((ZoneChangeEvent) event).getToZone() == Zone.GRAVEYARD) {
|
||||
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) {
|
||||
case CARD:
|
||||
for (Effect effect : getEffects()) {
|
||||
|
|
Loading…
Reference in a new issue