Merge branch 'garth' into 'master'

Cascade fix for Garth

See merge request core-developers/forge!6013
This commit is contained in:
Michael Kamensky
2022-01-05 04:34:17 +00:00
3 changed files with 3 additions and 2 deletions

View File

@@ -149,6 +149,8 @@ public class PlayEffect extends SpellAbilityEffect {
String name = source.getChosenName();
if (name.trim().isEmpty()) return;
Card card = Card.fromPaperCard(StaticData.instance().getCommonCards().getUniqueByName(name), controller);
// so it gets added to stack
card.setCopiedPermanent(card);
card.setToken(true);
tgtCards = new CardCollection();
tgtCards.add(card);

View File

@@ -119,7 +119,7 @@ public class Zone implements java.io.Serializable, Iterable<Card> {
c.setTapped(false);
}
// Do not add Tokens to other zones than the battlefield. (unless it's a copy of a card 706.12)
// Do not add Tokens to other zones than the battlefield. (unless it's a copy of a card 707.12)
// But Effects/Emblems count as Tokens too, so allow Command too.
if ((zoneType == ZoneType.Battlefield || !c.isToken()) || (zoneType == ZoneType.Stack && c.getCopiedPermanent() != null)) {
c.setZone(this);

View File

@@ -139,7 +139,6 @@ public class HumanPlay {
* @return an ArrayList<SpellAbility>.
*/
static SpellAbility chooseOptionalAdditionalCosts(Player p, final SpellAbility original) {
PlayerController c = p.getController();
// choose alternative additional cost