Merge branch 'gameActionCloneFix' into 'master'

GameAction: fix Clone working again

See merge request core-developers/forge!2506
This commit is contained in:
Michael Kamensky
2020-02-08 17:33:00 +00:00

View File

@@ -208,11 +208,7 @@ public class GameAction {
} }
if (!c.isToken()) { if (!c.isToken()) {
boolean updateState = false; if (c.removeChangedState()) {
updateState |= c.removeCloneStates();
updateState |= c.removeTextChangeStates();
if (updateState) {
c.updateStateForView(); c.updateStateForView();
} }
@@ -284,7 +280,7 @@ public class GameAction {
} }
// was replaced with another Zone Change // was replaced with another Zone Change
if (toBattlefield && c.isInZone(ZoneType.Battlefield)) { if (toBattlefield && !c.isInZone(ZoneType.Battlefield)) {
if (c.removeChangedState()) { if (c.removeChangedState()) {
c.updateStateForView(); c.updateStateForView();
} }