mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- 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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user