LKI: fix wrong state on stack (#3843)

* fix wrong state on stack

* fix typo
This commit is contained in:
tool4ever
2023-10-02 11:14:48 +02:00
committed by GitHub
parent e93b74c26a
commit 021bd2c16b
3 changed files with 3 additions and 3 deletions

View File

@@ -229,7 +229,7 @@ public final class CardUtil {
if (in.isTransformed()) {
newCopy.incrementTransformedTimestamp();
}
newCopy.setState(newCopy.getFaceupCardStateName(), false, true);
newCopy.setState(in.getCurrentStateName(), false, true);
if (in.isFaceDown()) {
newCopy.turnFaceDownNoUpdate();
newCopy.setType(new CardType(in.getFaceDownState().getType()));

View File

@@ -11,6 +11,6 @@ ALTERNATE
Name:Carnage
ManaCost:2 B R
Types:Sorcery
A:SP$ DealDamage | Cost$ 2 B R | ValidTgts$ Player.Opponent | NumDmg$ 3 | SubAbility$ DBDiscard | SpellDescription$ CARDNAME deals 3 damage to target player. That player discards two cards.
A:SP$ DealDamage | Cost$ 2 B R | ValidTgts$ Player.Opponent | NumDmg$ 3 | SubAbility$ DBDiscard | SpellDescription$ CARDNAME deals 3 damage to target opponent. That player discards two cards.
SVar:DBDiscard:DB$ Discard | Defined$ TargetedPlayer | NumCards$ 2 | Mode$ TgtChoose
Oracle:Carnage deals 3 damage to target opponent. That player discards two cards.

View File

@@ -3,7 +3,7 @@ ManaCost:R G
Types:Legendary Creature Human Scout
PT:1/2
K:Haste
T:Mode$ Attacks | ValidCard$ Card.Self | IsPresent$ Creature.YouCtrl+powerGE4 | NoResolvingCheck$ True | TriggerZones$ Battlefield | Execute TrigPump | TriggerDescription$ Whenever CARDNAME attacks while you control a creature with power 4 or greater, NICKNAME gets +2/+2 until end of turn.
T:Mode$ Attacks | ValidCard$ Card.Self | IsPresent$ Creature.YouCtrl+powerGE4 | NoResolvingCheck$ True | TriggerZones$ Battlefield | Execute$ TrigPump | TriggerDescription$ Whenever CARDNAME attacks while you control a creature with power 4 or greater, NICKNAME gets +2/+2 until end of turn.
SVar:TrigPump:DB$ Pump | Defined$ Self | NumAtt$ 2 | NumDef$ 2
A:AB$ Mana | Cost$ T | Produced$ Combo R G | SpellDescription$ Add {R} or {G}.
SVar:HasAttackEffect:TRUE