mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
changes to fix issues with zcTriggers for transformed cards
This commit is contained in:
@@ -23,6 +23,7 @@ import forge.Card;
|
|||||||
import forge.CardList;
|
import forge.CardList;
|
||||||
import forge.Command;
|
import forge.Command;
|
||||||
import forge.ZCTrigger;
|
import forge.ZCTrigger;
|
||||||
|
import forge.card.CardCharacteristics;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
@@ -89,8 +90,14 @@ public class AbilityTriggered extends Ability implements Command {
|
|||||||
this.restrictions = ((AbilityTriggered) this.todo).restrictions;
|
this.restrictions = ((AbilityTriggered) this.todo).restrictions;
|
||||||
} else {
|
} else {
|
||||||
this.setStackDescription("Triggered ability: " + sourceCard + " " + situation);
|
this.setStackDescription("Triggered ability: " + sourceCard + " " + situation);
|
||||||
|
if (!sourceCard.isInAlternateState()) {
|
||||||
this.restrictions = new String[] { "named " + sourceCard.getName() };
|
this.restrictions = new String[] { "named " + sourceCard.getName() };
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
CardCharacteristics origChar = sourceCard.getState("Original");
|
||||||
|
this.restrictions = new String[] { "named " + origChar.getName() };
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** {@inheritDoc} */
|
/** {@inheritDoc} */
|
||||||
|
|||||||
Reference in New Issue
Block a user