- A better fix for the issue with keywords not being cleared - it seems like this part of the issue is remedied with a previously missed state update call.

This commit is contained in:
Agetian
2015-01-16 15:57:57 +00:00
parent 6355dd14ec
commit 4596afe9b7

View File

@@ -138,12 +138,6 @@ public class GameAction {
copied = CardFactory.copyCard(c, false, false); copied = CardFactory.copyCard(c, false, false);
// clear any leftover keyword replacements from the card leaving battlefield
copied.removeChangedCardKeywords(copied.getTimestamp());
copied.removeChangedCardTypes(copied.getTimestamp());
copied.removeChangedTextColorWord(copied.getTimestamp());
copied.removeChangedTextTypeWord(copied.getTimestamp());
copied.setUnearthed(c.isUnearthed()); copied.setUnearthed(c.isUnearthed());
copied.setTapped(false); copied.setTapped(false);
for (final Trigger trigger : copied.getTriggers()) { for (final Trigger trigger : copied.getTriggers()) {
@@ -155,6 +149,9 @@ public class GameAction {
if (c.getName().equals("Skullbriar, the Walking Grave")) { if (c.getName().equals("Skullbriar, the Walking Grave")) {
copied.setCounters(c.getCounters()); copied.setCounters(c.getCounters());
} }
// ensure that any leftover keyword/type changes are cleared in the state view
copied.updateStateForView();
} else { //Token } else { //Token
copied = c; copied = c;
} }