Tabnine Logo
BecomesBlockedTriggeredAbility
Code IndexAdd Tabnine to your IDE (free)

How to use
BecomesBlockedTriggeredAbility
in
mage.abilities.common

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

origin: magefree/mage

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

@Override
public boolean checkTrigger(GameEvent event, Game game) {
  if (super.checkTrigger(event, game)) {
    UUID defenderId = game.getCombat().getDefendingPlayerId(getSourceId(), game);
    if (defenderId != null) {
      this.getEffects().setTargetPointer(new FixedTarget(defenderId));
      return true;
    }
  }
  return false;
}
origin: magefree/mage

@Override
public boolean checkTrigger(GameEvent event, Game game) {
  return event.getTargetId().equals(this.getSourceId());
}
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 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 PlagueWight(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{B}");
  this.subtype.add(SubType.ZOMBIE);
  this.power = new MageInt(2);
  this.toughness = new MageInt(1);
  // Whenever Plague Wight becomes blocked, each creature blocking it gets -1/-1 until end of turn.
  this.addAbility(new BecomesBlockedTriggeredAbility(new PlagueWightEffect(), false));
}
origin: magefree/mage

public SlashingTiger(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{G}{G}");
  this.subtype.add(SubType.CAT);
  this.power = new MageInt(3);
  this.toughness = new MageInt(3);
  // Whenever Slashing Tiger 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 TrainedCheetah(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{G}");
  this.subtype.add(SubType.CAT);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // Whenever Trained Cheetah becomes blocked, it gets +1/+1 until end of turn.
  this.addAbility(new BecomesBlockedTriggeredAbility(new BoostSourceEffect(1, 1, Duration.EndOfTurn), 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 SaprazzanHeir(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{U}");
  this.subtype.add(SubType.MERFOLK);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // Whenever Saprazzan Heir becomes blocked, you may draw three cards.
  this.addAbility(new BecomesBlockedTriggeredAbility(new DrawCardSourceControllerEffect(3), true));
}
origin: magefree/mage

public RazorclawBear(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{G}{G}");
  this.subtype.add(SubType.BEAR);
  this.power = new MageInt(3);
  this.toughness = new MageInt(3);
  // Whenever Razorclaw Bear 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 SacredPrey(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{G}");
  this.subtype.add(SubType.HORSE);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // Whenever Sacred Prey becomes blocked, you gain 1 life.
  this.addAbility(new BecomesBlockedTriggeredAbility(new GainLifeEffect(1), 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 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 ChamberedNautilus(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{U}");
  this.subtype.add(SubType.NAUTILUS);
  this.subtype.add(SubType.BEAST);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // Whenever Chambered Nautilus becomes blocked, you may draw a card.
  this.addAbility(new BecomesBlockedTriggeredAbility(new DrawCardSourceControllerEffect(1), true));
}
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 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));
}
mage.abilities.commonBecomesBlockedTriggeredAbility

Most used methods

  • <init>
  • checkTrigger
  • getSourceId

Popular in Java

  • Updating database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • runOnUiThread (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Reference (javax.naming)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top plugins for WebStorm
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