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