mirror of
https://github.com/correl/mage.git
synced 2024-11-16 03:00:12 +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) {
|
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()) {
|
||||||
|
|
Loading…
Reference in a new issue