congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
BecomesBlockedTriggeredAbility.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
mage.abilities.common.BecomesBlockedTriggeredAbility
constructor

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

origin: magefree/mage

public SaprazzanRaider(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{U}");
  this.subtype.add(SubType.MERFOLK);
  this.power = new MageInt(1);
  this.toughness = new MageInt(2);
  // When Saprazzan Raider becomes blocked, return it to its owner's hand.
  this.addAbility(new BecomesBlockedTriggeredAbility(new ReturnToHandSourceEffect(), false));
}
origin: magefree/mage

public DeepwoodWolverine(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{G}");
  this.subtype.add(SubType.WOLVERINE);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // Whenever Deepwood Wolverine becomes blocked, it gets +2/+0 until end of turn.
  Effect effect = new BoostSourceEffect(2, 0, Duration.EndOfTurn);
  effect.setText("it gets +2/+0 until end of turn");
  this.addAbility(new BecomesBlockedTriggeredAbility(effect, false));
}
origin: magefree/mage

public StormsurgeKraken(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{U}{U}");
  this.subtype.add(SubType.KRAKEN);
  this.power = new MageInt(5);
  this.toughness = new MageInt(5);
  // Hexproof
  this.addAbility(HexproofAbility.getInstance());
  
  // Lieutenant - As long as you control your commander, Stormsurge Kraken gets +2/+2 and has "Whenever Stormsurge Kraken becomes blocked, you may draw two cards."
  ContinuousEffect effect = new GainAbilitySourceEffect(new BecomesBlockedTriggeredAbility(new DrawCardSourceControllerEffect(2), true), Duration.WhileOnBattlefield);
  effect.setText("and has \"Whenever Stormsurge Kraken becomes blocked, you may draw two cards.\"");
  this.addAbility(new LieutenantAbility(effect));
}
origin: magefree/mage

public LeeryFogbeast(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{G}");
  this.subtype.add(SubType.BEAST);
  this.power = new MageInt(4);
  this.toughness = new MageInt(2);
  // Whenever Leery Fogbeast becomes blocked, prevent all combat damage that would be dealt this turn.
  this.addAbility(new BecomesBlockedTriggeredAbility(new PreventAllDamageByAllPermanentsEffect(Duration.EndOfTurn, true), false));
}
origin: magefree/mage

public DeepwoodTantiv(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{4}{G}");
  this.subtype.add(SubType.BEAST);
  this.power = new MageInt(2);
  this.toughness = new MageInt(4);
  // Whenever Deepwood Tantiv becomes blocked, you gain 2 life.
  this.addAbility(new BecomesBlockedTriggeredAbility(new GainLifeEffect(2), false));
}
origin: magefree/mage

public SilkenfistOrder(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{W}{W}");
  this.subtype.add(SubType.KOR);
  this.subtype.add(SubType.SOLDIER);
  this.power = new MageInt(3);
  this.toughness = new MageInt(5);
  // Whenever Silkenfist Order becomes blocked, untap it.
  Effect effect = new UntapSourceEffect();
  effect.setText("untap it");
  this.addAbility(new BecomesBlockedTriggeredAbility(effect, false));
}
origin: magefree/mage

public SnortingGahr(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{G}{G}");
  this.subtype.add(SubType.RHINO);
  this.subtype.add(SubType.BEAST);
  this.power = new MageInt(3);
  this.toughness = new MageInt(3);
  // Whenever Snorting Gahr becomes blocked, it gets +2/+2 until end of turn.
  Effect effect = new BoostSourceEffect(2, 2, Duration.EndOfTurn);
  effect.setText("it gets +2/+2 until end of turn");
  this.addAbility(new BecomesBlockedTriggeredAbility(effect, false));
}
origin: magefree/mage

public VedalkenGhoul(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{U}{B}");
  this.subtype.add(SubType.VEDALKEN);
  this.subtype.add(SubType.ZOMBIE);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // Whenever Vedalken Ghoul becomes blocked, defending player loses 4 life.
  this.addAbility(new BecomesBlockedTriggeredAbility(new LoseLifeDefendingPlayerEffect(4, true), false));
}
origin: magefree/mage

public DeeprootWarrior(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{G}");
  this.subtype.add(SubType.MERFOLK);
  this.subtype.add(SubType.WARRIOR);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // Whenever Deeproot Warrior becomes blocked, it gets +1/+1 until end of turn.
  Effect effect = new BoostSourceEffect(1, 1, Duration.EndOfTurn);
  effect.setText("it gets +1/+1 until end of turn");
  this.addAbility(new BecomesBlockedTriggeredAbility(effect, false));
}
origin: magefree/mage

public SparringGolem(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT,CardType.CREATURE},"{3}");
  this.subtype.add(SubType.GOLEM);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // Whenever Sparring Golem becomes blocked, it gets +1/+1 until end of turn for each creature blocking it.
  BlockedCreatureCount value = new BlockedCreatureCount();
  Effect effect = new BoostSourceEffect(value, value, Duration.EndOfTurn, true);
  effect.setText("it gets +1/+1 until end of turn for each creature blocking it");
  this.addAbility(new BecomesBlockedTriggeredAbility(effect, false));
}
origin: magefree/mage

public IgnobleSoldier(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{W}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.SOLDIER);
  this.power = new MageInt(3);
  this.toughness = new MageInt(1);
  // Whenever Ignoble Soldier becomes blocked, prevent all combat damage that would be dealt by it this turn.
  Effect effect = new PreventCombatDamageBySourceEffect(Duration.EndOfTurn);
  effect.setText("prevent all combat damage that would be dealt by it this turn");
  this.addAbility(new BecomesBlockedTriggeredAbility(effect, false));
}
origin: magefree/mage

public Groffskithur(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{5}{G}");
  this.subtype.add(SubType.BEAST);
  this.power = new MageInt(3);
  this.toughness = new MageInt(3);
  // Whenever Groffskithur becomes blocked, you may return target card named Groffskithur from your graveyard to your hand.
  Ability ability = new BecomesBlockedTriggeredAbility(new ReturnToHandTargetEffect(), true);
  ability.addTarget(new TargetCardInYourGraveyard(filter));
  this.addAbility(ability);
}
origin: magefree/mage

public JungleWurm(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{G}{G}");
  this.subtype.add(SubType.WURM);
  this.power = new MageInt(5);
  this.toughness = new MageInt(5);
  // Whenever Jungle Wurm becomes blocked, it gets -1/-1 until end of turn for each creature blocking it beyond the first.
  BlockedCreatureCount blockedCreatureCount = new BlockedCreatureCount("each creature blocking it beyond the first", true);
  DynamicValue value = new MultipliedValue(blockedCreatureCount, -1);
  Effect effect = new BoostSourceEffect(value, value, Duration.EndOfTurn, true);
  effect.setText("it gets -1/-1 until end of turn for each creature blocking it beyond the first");
  this.addAbility(new BecomesBlockedTriggeredAbility(effect, false));
}
origin: magefree/mage

public IchorclawMyr(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT,CardType.CREATURE},"{2}");
  this.subtype.add(SubType.MYR);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  this.addAbility(InfectAbility.getInstance());
  // Whenever Ichorclaw Myr becomes blocked, it gets +2/+2 until end of turn.
  this.addAbility(new BecomesBlockedTriggeredAbility(new BoostSourceEffect(2, 2, Duration.EndOfTurn), false));
}
origin: magefree/mage

public GangOfElk(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{5}{G}");
  this.subtype.add(SubType.ELK);
  this.subtype.add(SubType.BEAST);
  this.power = new MageInt(5);
  this.toughness = new MageInt(4);
  // Whenever Gang of Elk becomes blocked, it gets +2/+2 until end of turn for each creature blocking it.
  DynamicValue value = new MultipliedValue(new BlockedCreatureCount(), 2);
  Effect effect = new BoostSourceEffect(value, value, Duration.EndOfTurn, true);
  effect.setText("it gets +2/+2 until end of turn for each creature blocking it");
  this.addAbility(new BecomesBlockedTriggeredAbility(effect, false));
}
origin: magefree/mage

public KarplusanWolverine(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{R}");
  addSuperType(SuperType.SNOW);
  this.subtype.add(SubType.WOLVERINE);
  this.subtype.add(SubType.BEAST);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // Whenever Karplusan Wolverine becomes blocked, you may have it deal 1 damage to any target.
  Ability ability = new BecomesBlockedTriggeredAbility(new DamageTargetEffect(1), true);
  ability.addTarget(new TargetAnyTarget());
  this.addAbility(ability);
}
origin: magefree/mage

public LaccolithGrunt(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{R}");
  this.subtype.add(SubType.BEAST);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // Whenever Laccolith Grunt becomes blocked, you may have it deal damage equal to its power to target creature. If you do, Laccolith Grunt assigns no combat damage this turn.
  Ability ability = new BecomesBlockedTriggeredAbility(new LaccolithEffect().setText("you may have it deal damage equal to its power to target creature"), true);
  ability.addEffect(new AssignNoCombatDamageSourceEffect(Duration.EndOfTurn, true));
  ability.addTarget(new TargetCreaturePermanent());
  this.addAbility(ability);
}
origin: magefree/mage

public LaccolithTitan(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{5}{R}{R}");
  this.subtype.add(SubType.BEAST);
  this.power = new MageInt(6);
  this.toughness = new MageInt(6);
  // Whenever Laccolith Grunt becomes blocked, you may have it deal damage equal to its power to target creature. If you do, Laccolith Grunt assigns no combat damage this turn.
  Ability ability = new BecomesBlockedTriggeredAbility(new LaccolithEffect().setText("you may have it deal damage equal to its power to target creature"), true);
  ability.addEffect(new AssignNoCombatDamageSourceEffect(Duration.EndOfTurn, true));
  ability.addTarget(new TargetCreaturePermanent());
  this.addAbility(ability);
}
origin: magefree/mage

public Duskworker(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT,CardType.CREATURE},"{4}");
  this.subtype.add(SubType.CONSTRUCT);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  this.addAbility(new BecomesBlockedTriggeredAbility(new RegenerateSourceEffect(), false));
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new GenericManaCost(3)));
}
origin: magefree/mage

public FireJuggler(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{R}");
  this.subtype.add(SubType.GOBLIN);
  this.subtype.add(SubType.SHAMAN);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // Whenever Fire Juggler becomes blocked, clash with an opponent. If you win, Fire Juggler deals 4 damage to each creature blocking it.
  FilterPermanent filter = new FilterPermanent("each creature blocking it");
  filter.add(new BlockingAttackerIdPredicate(this.getId()));
  this.addAbility(new BecomesBlockedTriggeredAbility(new DoIfClashWonEffect(new DamageAllEffect(4,filter)),false));
}
mage.abilities.commonBecomesBlockedTriggeredAbility<init>

Popular methods of BecomesBlockedTriggeredAbility

  • checkTrigger
  • getSourceId

Popular in Java

  • Finding current android device location
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • scheduleAtFixedRate (Timer)
  • onCreateOptionsMenu (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • 21 Best Atom Packages for 2021
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