Additional fix for Ceaseless Searblades (see 86a894d8412b1dd671c16625c55868204ee40f91)
-
package mage.cards.c;
-import java.util.UUID;
import mage.MageInt;
import mage.abilities.TriggeredAbilityImpl;
import mage.abilities.effects.common.continuous.BoostSourceEffect;
@@ -16,8 +14,9 @@ import mage.filter.FilterCard;
import mage.game.Game;
import mage.game.events.GameEvent;
+import java.util.UUID;
+
/**
- *
* @author Will
*/
public final class CeaselessSearblades extends CardImpl {
@@ -68,18 +67,21 @@ class CeaselessSearbladesTriggeredAbility extends TriggeredAbilityImpl {
@Override
public boolean checkEventType(GameEvent event, Game game) {
+ // can be normal and mana abilities
return event.getType() == GameEvent.EventType.ACTIVATED_ABILITY || event.getType() == GameEvent.EventType.TAPPED_FOR_MANA;
}
@Override
public boolean checkTrigger(GameEvent event, Game game) {
+ if (event.getType() == GameEvent.EventType.TAPPED_FOR_MANA && game.inCheckPlayableState()) {
+ // ignore mana abilities on playable checking
+ return false;
+ }
+
Card source = game.getPermanentOrLKIBattlefield(event.getSourceId());
- if (event.getPlayerId().equals(getControllerId())
+ return event.getPlayerId().equals(getControllerId())
&& source != null
- && filter.match(source, game)) {
- return true;
- }
- return false;
+ && filter.match(source, game);
}
@Override
