Skip to content

Commit

Permalink
LKI: fix wrong state on stack (#3843)
Browse files Browse the repository at this point in the history
* fix wrong state on stack

* fix typo
  • Loading branch information
tool4ever authored Oct 2, 2023
1 parent e93b74c commit 021bd2c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion forge-game/src/main/java/forge/game/card/CardUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public static Card getLKICopy(final Card in, Map<Integer, Card> cachedMap) {
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()));
Expand Down
2 changes: 1 addition & 1 deletion forge-gui/res/cardsfolder/c/carnival_carnage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion forge-gui/res/cardsfolder/upcoming/ruby_daring_tracker.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 021bd2c

Please sign in to comment.