congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
CantBlockTargetEffect.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
mage.abilities.effects.common.combat.CantBlockTargetEffect
constructor

Best Java code snippets using mage.abilities.effects.common.combat.CantBlockTargetEffect.<init> (Showing top 20 results out of 315)

origin: magefree/mage

public GrotagThrasher(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{4}{R}");
  this.subtype.add(SubType.LIZARD);
  this.power = new MageInt(3);
  this.toughness = new MageInt(3);
  // Whenever Grotag Thrasher attacks, target creature can't block this turn.
  AttacksTriggeredAbility ability = new AttacksTriggeredAbility(new CantBlockTargetEffect(Duration.EndOfTurn), false);
  ability.addTarget(new TargetCreaturePermanent());
  this.addAbility(ability);
}
origin: magefree/mage

public GoblinBattleJester(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{R}");
  this.subtype.add(SubType.GOBLIN);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // Whenever you cast a red spell, target creature can't block this turn.
  Ability ability = new SpellCastControllerTriggeredAbility(new CantBlockTargetEffect(Duration.EndOfTurn), filter, false);
  ability.addTarget(new TargetCreaturePermanent());
  this.addAbility(ability);
}
origin: magefree/mage

public MarduRoughrider(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{R}{W}{B}");
  this.subtype.add(SubType.ORC);
  this.subtype.add(SubType.WARRIOR);
  this.power = new MageInt(5);
  this.toughness = new MageInt(4);
  // Whenever Mardu Roughrider attacks, target creature can't block this turn.
  AttacksTriggeredAbility ability = new AttacksTriggeredAbility(new CantBlockTargetEffect(Duration.EndOfTurn), false);
  ability.addTarget(new TargetCreaturePermanent());
  this.addAbility(ability);
}
origin: magefree/mage

public SmolderingSpires(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
  this.addAbility(new EntersBattlefieldTappedAbility());
  this.addAbility(new RedManaAbility());
  // When Smoldering Spires enters the battlefield, target creature can't block this turn.
  EntersBattlefieldTriggeredAbility ability = new EntersBattlefieldTriggeredAbility(new CantBlockTargetEffect(Duration.EndOfTurn));
  ability.addTarget(new TargetCreaturePermanent());
  this.addAbility(ability);
}
origin: magefree/mage

public RenegadeWheelsmith(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{R}{W}");
  this.subtype.add(SubType.DWARF);
  this.subtype.add(SubType.PILOT);
  this.power = new MageInt(3);
  this.toughness = new MageInt(2);
  // Whenever Renegade Wheelsmith becomes tapped, target creature can't block this turn.
  Ability ability = new BecomesTappedSourceTriggeredAbility(new CantBlockTargetEffect(Duration.EndOfTurn));
  ability.addTarget(new TargetCreaturePermanent());
  this.addAbility(ability);
}
origin: magefree/mage

public FirefistStriker(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{R}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.SOLDIER);
  this.power = new MageInt(2);
  this.toughness = new MageInt(1);
  // Battalion — Whenever Firefist Striker and at least two other creatures attack, target creature can't block this turn.
  Ability ability = new BattalionAbility(new CantBlockTargetEffect(Duration.EndOfTurn));
  ability.addTarget(new TargetCreaturePermanent());
  this.addAbility(ability);
}
origin: magefree/mage

public IntimidatorInitiate(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{R}");
  this.subtype.add(SubType.GOBLIN);
  this.subtype.add(SubType.SHAMAN);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // Whenever a player casts a red spell, you may pay {1}. If you do, target creature can't block this turn.
  Ability ability = new SpellCastAllTriggeredAbility(new DoIfCostPaid(new CantBlockTargetEffect(Duration.EndOfTurn), new GenericManaCost(1)), filter, true, rule);
  ability.addTarget(new TargetCreaturePermanent());
  this.addAbility(ability);
  
}
origin: magefree/mage

public PanicAttack(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{2}{R}");
  // Up to three target creatures can't block this turn.
  this.getSpellAbility().addEffect(new CantBlockTargetEffect(Duration.EndOfTurn));
  this.getSpellAbility().addTarget(new TargetCreaturePermanent(0, 3));
}
origin: magefree/mage

public ShinenOfFearsChill(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{4}{B}");
  this.subtype.add(SubType.SPIRIT);
  this.power = new MageInt(3);
  this.toughness = new MageInt(2);
  // Shinen of Fear's Chill can't block.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantBlockSourceEffect(Duration.WhileOnBattlefield)));
  // Channel - {1}{B}, Discard Shinen of Fear's Chill: Target creature can't block this turn.
  Ability ability = new ChannelAbility("{1}{B}", new CantBlockTargetEffect(Duration.EndOfTurn));
  ability.addTarget(new TargetCreaturePermanent());
  this.addAbility(ability);
}
origin: magefree/mage

public UnearthlyBlizzard(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{2}{R}");
  this.subtype.add(SubType.ARCANE);
  // Up to three target creatures can't block this turn.
  this.getSpellAbility().addEffect(new CantBlockTargetEffect(Duration.EndOfTurn));
  this.getSpellAbility().addTarget(new TargetCreaturePermanent(0, 3));
}
origin: magefree/mage

public GroundRift(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{R}");
  // Target creature without flying can't block this turn.
  this.getSpellAbility().addTarget(new TargetCreaturePermanent(filter));
  this.getSpellAbility().addEffect(new CantBlockTargetEffect(Duration.EndOfTurn));
  // Storm
  this.addAbility(new StormAbility());
}
origin: magefree/mage

public WrapInFlames(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{3}{R}");
  // Wrap in Flames deals 1 damage to each of up to three target creatures. Those creatures can't block this turn.
  this.getSpellAbility().addEffect(new DamageTargetEffect(1));
  this.getSpellAbility().addEffect(new CantBlockTargetEffect(Duration.EndOfTurn));
  this.getSpellAbility().addTarget(new TargetCreaturePermanent(0, 3));
}
origin: magefree/mage

public Stun(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{1}{R}");
  // Target creature can't block this turn.
  this.getSpellAbility().addTarget(new TargetCreaturePermanent());
  this.getSpellAbility().addEffect(new CantBlockTargetEffect(Duration.EndOfTurn));
  
  // Draw a card.
  this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1));
}
origin: magefree/mage

public RenegadeTactics(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{R}");
  // Target Creature can't block this turn.
  this.getSpellAbility().addEffect(new CantBlockTargetEffect(Duration.EndOfTurn));
  this.getSpellAbility().addTarget(new TargetCreaturePermanent());
  // Draw a card.
  this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1));
}
origin: magefree/mage

public KrarkClanOgre(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{R}{R}");
  this.subtype.add(SubType.OGRE);
  this.power = new MageInt(3);
  this.toughness = new MageInt(3);
  // {R}, Sacrifice an artifact: Target creature can't block this turn.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantBlockTargetEffect(Duration.EndOfTurn), new ManaCostsImpl("{R}"));
  ability.addCost(new SacrificeTargetCost(new TargetControlledPermanent(1, 1, new FilterControlledArtifactPermanent("an artifact"), true)));
  ability.addTarget(new TargetCreaturePermanent());
  this.addAbility(ability);
}
origin: magefree/mage

public NightbirdsClutches(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{1}{R}");
  // Up to two target creatures can't block this turn.
  this.getSpellAbility().addEffect(new CantBlockTargetEffect(Duration.EndOfTurn));
  this.getSpellAbility().addTarget(new TargetCreaturePermanent(0, 2));
  // Flashback {3}{R}
  this.addAbility(new FlashbackAbility(new ManaCostsImpl("{3}{R}"), TimingRule.SORCERY));
}
origin: magefree/mage

public PanicSpellbomb(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{1}");
  // Tap, Sacrifice Panic Spellbomb: Target creature can't block this turn.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantBlockTargetEffect(Duration.EndOfTurn), new TapSourceCost());
  ability.addCost(new SacrificeSourceCost());
  ability.addTarget(new TargetCreaturePermanent());
  this.addAbility(ability);
  // When Panic Spellbomb is put into a graveyard from the battlefield, you may pay Red. If you do, draw a card.
  this.addAbility(new PutIntoGraveFromBattlefieldSourceTriggeredAbility(new DoIfCostPaid(new DrawCardSourceControllerEffect(1), new ManaCostsImpl("{R}")), false, false));
}
origin: magefree/mage

public SparkmagesGambit(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{1}{R}");
  // Sparkmage's Gambit deals 1 damage to each of up to two target creatures. Those creatures can't block this turn.
  Effect effect = new DamageTargetEffect(1);
  effect.setText("{this} deals 1 damage to each of up to two target creatures");
  this.getSpellAbility().addEffect(effect);
  effect = new CantBlockTargetEffect(Duration.EndOfTurn);
  effect.setText("Those creatures can't block this turn");
  this.getSpellAbility().addEffect(effect);
  this.getSpellAbility().addTarget(new TargetCreaturePermanent(0, 2));
}
origin: magefree/mage

public SeismicShift(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{R}");
  // Destroy target land. Up to two target creatures can't block this turn.
  this.getSpellAbility().addEffect(new DestroyTargetEffect(false, false));
  this.getSpellAbility().addTarget(new TargetLandPermanent());
  this.getSpellAbility().addEffect(new CantBlockTargetEffect(Duration.EndOfTurn)
      .setText("Up to two target creatures can't block this turn")
      .setTargetPointer(new SecondTargetPointer()));
  this.getSpellAbility().addTarget(new TargetCreaturePermanent(0, 2, StaticFilters.FILTER_PERMANENT_CREATURES, false));
}
origin: magefree/mage

public Panic(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{R}");
  // Cast Panic only during combat before blockers are declared.
  this.addAbility(new CastOnlyDuringPhaseStepSourceAbility(TurnPhase.COMBAT, BeforeBlockersAreDeclaredCondition.instance));
  // Target creature can't block this turn.
  this.getSpellAbility().addTarget(new TargetCreaturePermanent());
  this.getSpellAbility().addEffect(new CantBlockTargetEffect(Duration.EndOfTurn));
  // Draw a card at the beginning of the next turn's upkeep.
  this.getSpellAbility().addEffect(new CreateDelayedTriggeredAbilityEffect(new AtTheBeginOfNextUpkeepDelayedTriggeredAbility(new DrawCardSourceControllerEffect(1)), false));
}
mage.abilities.effects.common.combatCantBlockTargetEffect<init>

Popular methods of CantBlockTargetEffect

  • setText

Popular in Java

  • Start an intent from android
  • putExtra (Intent)
  • setContentView (Activity)
  • getSystemService (Context)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now