mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
GameAction: Remove unneeded code
This commit is contained in:
@@ -265,25 +265,13 @@ public class GameAction {
|
|||||||
copied.setTimestamp(c.getTimestamp());
|
copied.setTimestamp(c.getTimestamp());
|
||||||
|
|
||||||
if (zoneTo.is(ZoneType.Stack)) {
|
if (zoneTo.is(ZoneType.Stack)) {
|
||||||
// when moving to stack, copy changed card information
|
// try not to copy changed stats when moving to stack
|
||||||
copied.setChangedCardColors(c.getChangedCardColorsTable());
|
|
||||||
copied.setChangedCardColorsCharacterDefining(c.getChangedCardColorsCharacterDefiningTable());
|
|
||||||
copied.setChangedCardKeywords(c.getChangedCardKeywords(), false);
|
|
||||||
copied.setChangedCardTypes(c.getChangedCardTypesTable());
|
|
||||||
copied.setChangedCardTypesCharacterDefining(c.getChangedCardTypesCharacterDefiningTable());
|
|
||||||
copied.setChangedCardNames(c.getChangedCardNames());
|
|
||||||
copied.setChangedCardTraits(c.getChangedCardTraits());
|
|
||||||
copied.setDrawnThisTurn(c.getDrawnThisTurn());
|
|
||||||
|
|
||||||
copied.copyChangedTextFrom(c);
|
|
||||||
|
|
||||||
// clean up changes that come from its own static abilities
|
|
||||||
copied.cleanupCopiedChangesFrom(c);
|
|
||||||
|
|
||||||
// copy exiled properties when adding to stack
|
// copy exiled properties when adding to stack
|
||||||
// will be cleanup later in MagicStack
|
// will be cleanup later in MagicStack
|
||||||
copied.setExiledWith(c.getExiledWith());
|
copied.setExiledWith(c.getExiledWith());
|
||||||
copied.setExiledBy(c.getExiledBy());
|
copied.setExiledBy(c.getExiledBy());
|
||||||
|
copied.setDrawnThisTurn(c.getDrawnThisTurn());
|
||||||
|
|
||||||
// copy bestow timestamp
|
// copy bestow timestamp
|
||||||
copied.setBestowTimestamp(c.getBestowTimestamp());
|
copied.setBestowTimestamp(c.getBestowTimestamp());
|
||||||
|
|||||||
Reference in New Issue
Block a user