Tabnine Logo
CantBeBlockedTargetEffect.<init>
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: magefree/mage

public WhitewaterNaiads(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT,CardType.CREATURE},"{3}{U}{U}");
  this.subtype.add(SubType.NYMPH);
  this.power = new MageInt(4);
  this.toughness = new MageInt(4);
  // Constellation - Whenever Whitewater Naiads or another enchantment enters the battlefield under your control, target creature can't be blocked this turn.
  Ability ability = new ConstellationAbility(new CantBeBlockedTargetEffect(Duration.EndOfTurn), false);
  ability.addTarget(new TargetCreaturePermanent());        
  this.addAbility(ability);
}
origin: magefree/mage

public TawnossWand(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{4}");
  // {2}, {tap}: Target creature with power 2 or less is unblockable this turn.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantBeBlockedTargetEffect(), new TapSourceCost());
  ability.addCost(new ManaCostsImpl("{2}"));
  ability.addTarget(new TargetCreaturePermanent(filter));        
  this.addAbility(ability);        
}
origin: magefree/mage

public SubterraneanScout(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{R}");
  this.subtype.add(SubType.GOBLIN);
  this.subtype.add(SubType.SCOUT);
  this.power = new MageInt(2);
  this.toughness = new MageInt(1);
  // When Subterranean Scout enters the battlefield, target creature with power 2 or less can't be blocked this turn.
  Ability ability = new EntersBattlefieldTriggeredAbility(new CantBeBlockedTargetEffect(), false);
  ability.addTarget(new TargetCreaturePermanent(filter));
  this.addAbility(ability);
  
}
origin: magefree/mage

public PathmakerInitiate(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{R}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.WIZARD);
  this.power = new MageInt(2);
  this.toughness = new MageInt(1);
  // {T}: Target creature with power 2 or less can't be blocked this turn.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantBeBlockedTargetEffect(Duration.EndOfTurn), new TapSourceCost());
  ability.addTarget(new TargetCreaturePermanent(filter));
  this.addAbility(ability);
}
origin: magefree/mage

public Ghostform(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{1}{U}");
  // Up to two target creatures can't be blocked this turn..
  this.getSpellAbility().addEffect(new CantBeBlockedTargetEffect());
  this.getSpellAbility().addTarget(new TargetCreaturePermanent(0, 2));
}
origin: magefree/mage

public KeyToTheCity(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{2}");
  // {T}, Discard a card: Up to one target creature can't be blocked this turn.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantBeBlockedTargetEffect(), new TapSourceCost());
  ability.addCost(new DiscardCardCost());
  ability.addTarget(new TargetCreaturePermanent(0, 1));
  this.addAbility(ability);
  // Whenever Key to the City becomes untapped, you may pay {2}. If you do, draw a card.
  this.addAbility(new KeyToTheCityTriggeredAbility());
}
origin: magefree/mage

public AmphinPathmage(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{U}");
  this.subtype.add(SubType.SALAMANDER);
  this.subtype.add(SubType.WIZARD);
  this.power = new MageInt(3);
  this.toughness = new MageInt(2);
  // {2}{U}: Target creature can't be blocked this turn.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantBeBlockedTargetEffect(Duration.EndOfTurn), new ManaCostsImpl("{2}{U}"));
  ability.addTarget(new TargetCreaturePermanent());
  this.addAbility(ability);
}
origin: magefree/mage

public DwarvenNomad(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{R}");
  this.subtype.add(SubType.DWARF);
  this.subtype.add(SubType.NOMAD);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // {T}: Target creature with power 2 or less can't be blocked this turn.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantBeBlockedTargetEffect(), new TapSourceCost());
  ability.addTarget(new TargetCreaturePermanent(filter));
  this.addAbility(ability);
}
origin: magefree/mage

public DwarvenWarriors(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{R}");
  this.subtype.add(SubType.DWARF);
  this.subtype.add(SubType.WARRIOR);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // {T}: Target creature with power 2 or less can't be blocked this turn.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantBeBlockedTargetEffect(), new TapSourceCost());
  ability.addTarget(new TargetCreaturePermanent(filter));
  this.addAbility(ability);
}
origin: magefree/mage

public GoblinTunneler(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{R}");
  this.subtype.add(SubType.GOBLIN);
  this.subtype.add(SubType.ROGUE);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // {tap}: Target creature with power 2 or less can't be blocked this turn.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantBeBlockedTargetEffect(), new TapSourceCost());
  ability.addTarget(new TargetCreaturePermanent(filter));
  this.addAbility(ability);
}
origin: magefree/mage

public ZhugeJinWuStrategist(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{U}{U}");
  addSuperType(SuperType.LEGENDARY);
  this.subtype.add(SubType.HUMAN, SubType.ADVISOR);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // {tap}: Target creature can't be blocked this turn. Activate this ability only during your turn, before attackers are declared.
  Ability ability = new ActivateIfConditionActivatedAbility(Zone.BATTLEFIELD, 
      new CantBeBlockedTargetEffect(Duration.EndOfTurn), new TapSourceCost(), MyTurnBeforeAttackersDeclaredCondition.instance);
  ability.addTarget(new TargetCreaturePermanent());
  this.addAbility(ability);
}
origin: magefree/mage

public CoralhelmGuide(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{U}");
  this.subtype.add(SubType.MERFOLK);
  this.subtype.add(SubType.SCOUT);
  this.subtype.add(SubType.ALLY);
  this.power = new MageInt(2);
  this.toughness = new MageInt(1);
  // {4}{U}: Target creature can't be blocked this turn.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantBeBlockedTargetEffect(Duration.EndOfTurn), new ManaCostsImpl<>("{4}{U}"));
  ability.addTarget(new TargetCreaturePermanent());
  this.addAbility(ability);
}
origin: magefree/mage

public RoguesPassage(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
  // {T}: Add {C}.
  this.addAbility(new SimpleManaAbility(Zone.BATTLEFIELD, Mana.ColorlessMana(1), new TapSourceCost()));
  // {4}, {T}: Target creature can't be blocked this turn.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantBeBlockedTargetEffect(), new ManaCostsImpl("{4}"));
  ability.addCost(new TapSourceCost());
  ability.addTarget(new TargetCreaturePermanent());
  this.addAbility(ability);
}
origin: magefree/mage

@Override
public boolean apply(Game game, Ability source) {
  Permanent permanent = game.getPermanent(getTargetPointer().getFirst(game, source));
  if (permanent != null) {
    game.addEffect(new CantBeBlockedTargetEffect(Duration.EndOfTurn), source);
    if (permanent.hasSubtype(SubType.SNAKE, game)) {
      game.addEffect(new BoostTargetEffect(2, 2, Duration.EndOfTurn), source);
    }
    return true;
  }
  return false;
}
origin: magefree/mage

public ArtfulDodge(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{U}");
  // Target creature can't be blocked this turn.
  this.getSpellAbility().addEffect(new CantBeBlockedTargetEffect());
  this.getSpellAbility().addTarget(new TargetCreaturePermanent());
  // Flashback {U}
  this.addAbility(new FlashbackAbility(new ManaCostsImpl("{U}"), TimingRule.SORCERY));
}
origin: magefree/mage

public SlipThroughSpace(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{U}");
  // Devoid
  this.addAbility(new DevoidAbility(this.color));
  // Target creature can't be blocked this turn.
  this.getSpellAbility().addEffect(new CantBeBlockedTargetEffect());
  this.getSpellAbility().addTarget(new TargetCreaturePermanent());
  // Draw a card.
  this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1));
}
origin: magefree/mage

public OpenIntoWonder(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{X}{U}{U}");
  // X target creatures can't be blocked this turn. Until end of turn, those creatures gain "Whenever this creature deals combat damage to a player, draw a card."
  Effect effect = new CantBeBlockedTargetEffect(Duration.EndOfTurn);
  effect.setText("X target creatures can't be blocked this turn");
  this.getSpellAbility().addEffect(effect);
  Ability abilityToGain = new DealsCombatDamageToAPlayerTriggeredAbility(new DrawCardSourceControllerEffect(1), false);
  this.getSpellAbility().addEffect(new GainAbilityTargetEffect(abilityToGain, Duration.EndOfTurn,
      "Until end of turn, those creatures gain \"Whenever this creature deals combat damage to a player, draw a card.\""));
  this.getSpellAbility().setTargetAdjuster(OpenIntoWonderAdjuster.instance);
}
origin: magefree/mage

public BreakThroughTheLine(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{1}{R}");
  // {R}: Target creature with power 2 or less gains haste until end of turn and can't be blocked this turn.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(HasteAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{R}"));
  Effect effect = new CantBeBlockedTargetEffect(Duration.EndOfTurn);
  effect.setText("and can't be blocked this turn");
  ability.addEffect(effect);
  ability.addTarget(new TargetCreaturePermanent(filter));
  this.addAbility(ability);
  
}
origin: magefree/mage

public TaigamsStrike(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{3}{U}");
  // Target creature gets +2/+0 until end of turn and can't be blocked this turn.
  this.getSpellAbility().addTarget(new TargetCreaturePermanent());
  this.getSpellAbility().addEffect(new BoostTargetEffect(2, 0, Duration.EndOfTurn));
  Effect effect = new CantBeBlockedTargetEffect();
  effect.setText("and can't be blocked this turn");
  this.getSpellAbility().addEffect(effect);        
  
  // Rebound
  this.addAbility(new ReboundAbility());
}
origin: magefree/mage

public DistortionStrike(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{U}");
  // Target creature gets +1/+0 until end of turn and can't be blocked this turn.
  this.getSpellAbility().addTarget(new TargetCreaturePermanent());
  this.getSpellAbility().addEffect(new BoostTargetEffect(1, 0, Duration.EndOfTurn));
  Effect effect = new CantBeBlockedTargetEffect();
  effect.setText("and can't be blocked this turn");
  this.getSpellAbility().addEffect(effect);
  // Rebound
  this.addAbility(new ReboundAbility());
}
mage.abilities.effects.common.combatCantBeBlockedTargetEffect<init>

Popular methods of CantBeBlockedTargetEffect

  • getTargetPointer
  • setTargetPointer
  • setText

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSystemService (Context)
  • addToBackStack (FragmentTransaction)
  • getSupportFragmentManager (FragmentActivity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • From CI to AI: The AI layer in your organization
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