(final CounterType type)
| 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) { |
no test coverage detected