<BUG>if (ability != null && AbilityType.SPELL.equals(ability.getAbilityType())) {</BUG><CONTEXT>boolean filterApplies = filter == null || filter.match(game.getCard(source.getSourceId()), game);return conditionApplies && filterApplies;}@Overridepublic boolean askToActivateAlternativeCosts(Ability ability, Game game) {<extra_id_0>if (filter != null) {Card card = game.getCard(ability.getSourceId());if (!filter.match(card, ability.getSourceId(), ability.getControllerId(), game)) {</CONTEXT>
if (ability != null && AbilityType.SPELL == ability.getAbilityType()) {