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

Method canRemoveCounters

forge-game/src/main/java/forge/game/card/Card.java:1721–1734  ·  view source on GitHub ↗
(final CounterType type)

Source from the content-addressed store, hash-verified

1719 }
1720
1721 @Override
1722 public final boolean canRemoveCounters(final CounterType type) {
1723 if (isPhasedOut()) {
1724 return false;
1725 }
1726 final Map<AbilityKey, Object> repParams = AbilityKey.mapFromAffected(this);
1727 repParams.put(AbilityKey.CounterType, type);
1728 repParams.put(AbilityKey.Result, 0);
1729 repParams.put(AbilityKey.IsDamage, false);
1730 if (game.getReplacementHandler().cantHappenCheck(ReplacementType.RemoveCounter, repParams)) {
1731 return false;
1732 }
1733 return true;
1734 }
1735
1736 @Override
1737 public Integer getCounterMax(final CounterType counterType) {

Callers 15

canPayMethod · 0.95
resolveMethod · 0.95
resolveMethod · 0.95
canPayMethod · 0.45
getMaxAmountXMethod · 0.45
addOrRemoveCounterMethod · 0.45
removeAnyTypeMethod · 0.45
getIncrementCardsMethod · 0.45
removeCounterMethod · 0.45
onCardSelectedMethod · 0.45

Calls 5

isPhasedOutMethod · 0.95
mapFromAffectedMethod · 0.95
cantHappenCheckMethod · 0.80
getReplacementHandlerMethod · 0.80
putMethod · 0.45

Tested by

no test coverage detected