MCPcopy Create free account
hub / github.com/Card-Forge/forge / reset

Method reset

forge-game/src/main/java/forge/game/zone/MagicStack.java:97–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95 public void resetMaxDistinctSources() { maxDistinctSources = 0; }
96
97 public final void reset() {
98 clear();
99 simultaneousStackEntryList.clear();
100 frozen = false;
101 primaryAbility = null;
102 lastTurnCast.clear();
103 thisTurnCast.clear();
104 curResolvingCard = null;
105 frozenStack.clear();
106 clearUndoStack();
107 game.updateStackForView();
108 }
109
110 public final boolean isSplitSecondOnStack() {
111 for (SpellAbilityStackInstance si : stack) {

Callers

nothing calls this directly

Calls 3

clearMethod · 0.95
clearUndoStackMethod · 0.95
updateStackForViewMethod · 0.80

Tested by

no test coverage detected