mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
GameAction: copy changed card traits when moving to stack
This commit is contained in:
@@ -207,7 +207,17 @@ public class GameAction {
|
||||
if (!c.isRealToken()) {
|
||||
copied = CardFactory.copyCard(c, false);
|
||||
|
||||
if (!zoneTo.is(ZoneType.Stack)) {
|
||||
if (zoneTo.is(ZoneType.Stack)) {
|
||||
// when moving to stack, copy changed card infomation
|
||||
copied.setChangedCardColors(c.getChangedCardColors());
|
||||
copied.setChangedCardKeywords(c.getChangedCardKeywords());
|
||||
copied.setChangedCardTypes(c.getChangedCardTypesMap());
|
||||
copied.setChangedCardNames(c.getChangedCardNames());
|
||||
copied.setChangedCardTraits(c.getChangedCardTraits());
|
||||
|
||||
copied.copyChangedTextFrom(c);
|
||||
|
||||
} else {
|
||||
// when a card leaves the battlefield, ensure it's in its original state
|
||||
// (we need to do this on the object before copying it, or it won't work correctly e.g.
|
||||
// on Transformed objects)
|
||||
|
||||
Reference in New Issue
Block a user