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

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

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

origin: magefree/mage

@Override
public CantBlockSourceEffect copy() {
  return new CantBlockSourceEffect(this);
}
origin: magefree/mage

public CantBlockAbility() {
  super(Zone.BATTLEFIELD, new CantBlockSourceEffect(Duration.WhileOnBattlefield));
}
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 MarangRiverProwler(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{U}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.ROGUE);
  this.power = new MageInt(2);
  this.toughness = new MageInt(1);
  // Marang River Prowler can't block and can't be blocked.
  Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD, new CantBlockSourceEffect(Duration.WhileOnBattlefield));
  Effect effect = new CantBeBlockedSourceEffect();
  effect.setText("and can't be blocked");
  ability.addEffect(effect);
  this.addAbility(ability);
  
  // You may cast Marang River Prowler from your graveyard as long as you control a black or green permanent.
  this.addAbility(new SimpleStaticAbility(Zone.GRAVEYARD, new MarangRiverProwlerCastEffect()));
}
origin: magefree/mage

public Frightcrawler(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{B}");
  this.subtype.add(SubType.HORROR);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // Fear
  this.addAbility(FearAbility.getInstance());
  // Threshold - As long as seven or more cards are in your graveyard, Frightcrawler gets +2/+2 and can't block.
  Ability thresholdAbility = new SimpleStaticAbility(
      Zone.BATTLEFIELD,
      new ConditionalContinuousEffect(
        new BoostSourceEffect(2, 2, Duration.WhileOnBattlefield),
        new CardsInControllerGraveCondition(7),
        "If seven or more cards are in your graveyard, {this} gets +2/+2 "
      ));
    thresholdAbility.addEffect(new ConditionalContinuousEffect(
        new CantBlockSourceEffect(Duration.WhileOnBattlefield),
        new CardsInControllerGraveCondition(7),
        "and can't block."));
  thresholdAbility.setAbilityWord(AbilityWord.THRESHOLD);
  this.addAbility(thresholdAbility);
}
origin: magefree/mage

public ChildhoodHorror(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{B}");
  this.subtype.add(SubType.HORROR);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // Flying
  this.addAbility(FlyingAbility.getInstance());
  // Threshold - As long as seven or more cards are in your graveyard, Childhood Horror gets +2/+2 and can't block.
  Ability thresholdAbility = new SimpleStaticAbility(
      Zone.BATTLEFIELD,
      new ConditionalContinuousEffect(
        new BoostSourceEffect(2, 2, Duration.WhileOnBattlefield),
        new CardsInControllerGraveCondition(7),
        "If seven or more cards are in your graveyard, Childhood Horror gets +2/+2"
      ));
  Effect effect = new ConditionalRestrictionEffect(
        new CantBlockSourceEffect(Duration.WhileOnBattlefield),
        new CardsInControllerGraveCondition(7));
  effect.setText("and can't block");
  thresholdAbility.addEffect(effect);
  thresholdAbility.setAbilityWord(AbilityWord.THRESHOLD);
  this.addAbility(thresholdAbility);
}
origin: magefree/mage

public InsidiousMist(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"");
  this.subtype.add(SubType.ELEMENTAL);
  this.power = new MageInt(0);
  this.toughness = new MageInt(1);
  this.color.setBlue(true);
  this.nightCard = true;
  this.transformable = true;
  // Hexproof
  this.addAbility(HexproofAbility.getInstance());
  // Indestructible
  this.addAbility(IndestructibleAbility.getInstance());
  // Insideous Mist can't block and can't be blocked.
  Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD, new CantBlockSourceEffect(Duration.WhileOnBattlefield));
  Effect effect = new CantBeBlockedSourceEffect();
  effect.setText("and can't be blocked");
  ability.addEffect(effect);
  this.addAbility(ability);
  // Whenever Insideous Mist attacks and isn't blocked, you may pay {2}{B}. If you do, transform it.
  this.addAbility(new TransformAbility());
  this.addAbility(new AttacksAndIsNotBlockedTriggeredAbility(new DoIfCostPaid(new TransformSourceEffect(false), new ManaCostsImpl("{2}{B}"), "Pay {2}{B} to transform?")));
}
origin: magefree/mage

public PutridImp(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{B}");
  this.subtype.add(SubType.ZOMBIE);
  this.subtype.add(SubType.IMP);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // Discard a card: Putrid Imp gains flying until end of turn.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FlyingAbility.getInstance(), Duration.EndOfTurn), new DiscardCardCost()));
  // Threshold - As long as seven or more cards are in your graveyard, Putrid Imp gets +1/+1 and can't block.
  Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD, new ConditionalContinuousEffect(
      new BoostSourceEffect(1, 1, Duration.WhileOnBattlefield),
      new CardsInControllerGraveCondition(7),
      "As long as seven or more cards are in your graveyard, {this} gets +1/+1"));
  Effect effect = new ConditionalRestrictionEffect(new CantBlockSourceEffect(Duration.WhileOnBattlefield), new CardsInControllerGraveCondition(7));
  effect.setText("and can't block");
  ability.addEffect(effect);
  ability.setAbilityWord(AbilityWord.THRESHOLD);
  this.addAbility(ability);
}
origin: magefree/mage

public DirtyWererat(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{B}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.RAT);
  this.subtype.add(SubType.MINION);
  this.power = new MageInt(2);
  this.toughness = new MageInt(3);
  // {B}, Discard a card: Regenerate Dirty Wererat.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{B}"));
  ability.addCost(new DiscardCardCost());
  this.addAbility(ability);
  // Threshold - As long as seven or more cards are in your graveyard, Dirty Wererat gets +2/+2 and can't block.
  Ability thresholdAbility = new SimpleStaticAbility(Zone.BATTLEFIELD,
      new ConditionalContinuousEffect(
          new BoostSourceEffect(2, 2, Duration.WhileOnBattlefield),
          new CardsInControllerGraveCondition(7),
          "If seven or more cards are in your graveyard, {this} gets +2/+2"
      ));
  Effect effect = new ConditionalRestrictionEffect(
      new CantBlockSourceEffect(Duration.WhileOnBattlefield),
      new CardsInControllerGraveCondition(7));
  effect.setText("and can't block");
  thresholdAbility.addEffect(effect);
  thresholdAbility.setAbilityWord(AbilityWord.THRESHOLD);
  this.addAbility(thresholdAbility);
}
mage.abilities.effects.common.combatCantBlockSourceEffect<init>

Popular methods of CantBlockSourceEffect

    Popular in Java

    • Updating database using SQL prepared statement
    • runOnUiThread (Activity)
    • findViewById (Activity)
    • onCreateOptionsMenu (Activity)
    • Window (java.awt)
      A Window object is a top-level window with no borders and no menubar. The default layout for a windo
    • InputStreamReader (java.io)
      A class for turning a byte stream into a character stream. Data read from the source input stream is
    • Selector (java.nio.channels)
      A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
    • Calendar (java.util)
      Calendar is an abstract base class for converting between a Date object and a set of integer fields
    • BlockingQueue (java.util.concurrent)
      A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
    • JLabel (javax.swing)
    • 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