congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
CantBlockSourceEffect
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using mage.abilities.effects.common.combat.CantBlockSourceEffect (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

Most used methods

  • <init>

Popular in Java

  • Making http post requests using okhttp
  • getApplicationContext (Context)
  • getSupportFragmentManager (FragmentActivity)
  • setScale (BigDecimal)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Permission (java.security)
    Legacy security code; do not use.
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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