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

Method hasSVar

forge-game/src/main/java/forge/game/card/Card.java:1988–1995  ·  view source on GitHub ↗
(final String var)

Source from the content-addressed store, hash-verified

1986 }
1987
1988 public final boolean hasSVar(final String var) {
1989 for (Map<String, String> map : changedSVars.values()) {
1990 if (map.containsKey(var)) {
1991 return true;
1992 }
1993 }
1994 return currentState.hasSVar(var);
1995 }
1996
1997 public final void setSVar(final String var, final String str) {
1998 currentState.setSVar(var, str);

Callers 15

getAbilityTextMethod · 0.95
filterListByTypeMethod · 0.95
resolveMethod · 0.95
resolveMethod · 0.95
resolveMethod · 0.95
testDashMethod · 0.95
visitMethod · 0.95
getCheapestSpellAIMethod · 0.95
chooseManaAbilityMethod · 0.95
declareAttackersMethod · 0.95

Calls 3

valuesMethod · 0.80
containsKeyMethod · 0.80
hasSVarMethod · 0.65

Tested by 1

testDashMethod · 0.76