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

How to use
mage.abilities.effects.common.continuous.SwitchPowerToughnessSourceEffect
constructor

Best Java code snippets using mage.abilities.effects.common.continuous.SwitchPowerToughnessSourceEffect.<init> (Showing top 11 results out of 315)

origin: magefree/mage

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

public ValakutFireboar(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{4}{R}");
  this.subtype.add(SubType.ELEMENTAL);
  this.subtype.add(SubType.BOAR);
  this.power = new MageInt(1);
  this.toughness = new MageInt(7);
  this.addAbility(new AttacksTriggeredAbility(new SwitchPowerToughnessSourceEffect(Duration.EndOfTurn), false));
}
origin: magefree/mage

public Fluxcharger(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{U}{R}");
  this.subtype.add(SubType.WEIRD);
  this.power = new MageInt(1);
  this.toughness = new MageInt(5);
  // Flying
  this.addAbility(FlyingAbility.getInstance());
  // Whenever you cast an instant or sorcery spell, you may switch Fluxcharger's power and toughness until end of turn.
  this.addAbility(new SpellCastControllerTriggeredAbility(new SwitchPowerToughnessSourceEffect(Duration.EndOfTurn), StaticFilters.FILTER_SPELL_AN_INSTANT_OR_SORCERY, true));
}
origin: magefree/mage

public CalciteSnapper(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{U}{U}");
  this.subtype.add(SubType.TURTLE);
  this.power = new MageInt(1);
  this.toughness = new MageInt(4);
  this.addAbility(ShroudAbility.getInstance());
  this.addAbility(new LandfallAbility(new SwitchPowerToughnessSourceEffect(Duration.EndOfTurn), true));
}
origin: magefree/mage

public CragPuca(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{U/R}{U/R}{U/R}");
  this.subtype.add(SubType.SHAPESHIFTER);
  this.power = new MageInt(2);
  this.toughness = new MageInt(4);
  // {UR}: Switch Crag Puca's power and toughness until end of turn.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new SwitchPowerToughnessSourceEffect(Duration.EndOfTurn), new ManaCostsImpl("{U/R}")));
  
}
origin: magefree/mage

public MyrQuadropod(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT,CardType.CREATURE},"{4}");
  this.subtype.add(SubType.MYR);
  this.power = new MageInt(1);
  this.toughness = new MageInt(4);
  // {3}: Switch Myr Quadropod's power and toughness until end of turn.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new SwitchPowerToughnessSourceEffect(Duration.EndOfTurn), new ManaCostsImpl("{3}")));
}
origin: magefree/mage

public WanderingFumaroleToken() {
  super("", "1/4 blue and red Elemental creature with \"0: Switch this creature's power and toughness until end of turn.\"");
  cardType.add(CardType.CREATURE);
  subtype.add(SubType.ELEMENTAL);
  color.setRed(true);
  color.setBlue(true);
  power = new MageInt(1);
  toughness = new MageInt(4);
  addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new SwitchPowerToughnessSourceEffect(Duration.EndOfTurn), new ManaCostsImpl("{0}")));
}
public WanderingFumaroleToken(final WanderingFumaroleToken token) {
origin: magefree/mage

public Aquamoeba(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{U}");
  this.subtype.add(SubType.ELEMENTAL);
  this.subtype.add(SubType.BEAST);
  this.power = new MageInt(1);
  this.toughness = new MageInt(3);
  // Discard a card: Switch Aquamoeba's power and toughness until end of turn.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new SwitchPowerToughnessSourceEffect(Duration.EndOfTurn), new DiscardCardCost()));
}
origin: magefree/mage

public TurtleshellChangeling(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{U}");
  this.subtype.add(SubType.SHAPESHIFTER);
  this.power = new MageInt(1);
  this.toughness = new MageInt(4);
  //Changeling
  this.addAbility(ChangelingAbility.getInstance());
  //{1}{U}: Switch {this}'s power and toughness until end of turn.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new SwitchPowerToughnessSourceEffect(Duration.EndOfTurn), new ManaCostsImpl("{1}{U}")));
}
origin: magefree/mage

public PhantasmalFiend(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{B}");
  this.subtype.add(SubType.ILLUSION);
  this.power = new MageInt(1);
  this.toughness = new MageInt(5);
  // {B}: Phantasmal Fiend gets +1/-1 until end of turn.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, -1, Duration.EndOfTurn), new ManaCostsImpl("{B}")));
  // {1}{U}: Switch Phantasmal Fiend's power and toughness until end of turn.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new SwitchPowerToughnessSourceEffect(Duration.EndOfTurn), new ManaCostsImpl("{1}{U}")));
}
origin: magefree/mage

public Windreaver(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{W}{U}");
  this.subtype.add(SubType.ELEMENTAL);
  this.power = new MageInt(1);
  this.toughness = new MageInt(3);
  // Flying
  this.addAbility(FlyingAbility.getInstance());
  // {W}: Windreaver gains vigilance until end of turn.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(VigilanceAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{W}"))); 
  // {W}: Windreaver gets +0/+1 until end of turn.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(0, 1, Duration.EndOfTurn), new ManaCostsImpl("{W}"))); 
  // {U}: Switch Windreaver's power and toughness until end of turn.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new SwitchPowerToughnessSourceEffect(Duration.EndOfTurn), new ManaCostsImpl("{U}"))); 
  // {U}: Return Windreaver to its owner's hand.
  this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new ReturnToHandSourceEffect(true), new ManaCostsImpl("{U}"))); 
}
mage.abilities.effects.common.continuousSwitchPowerToughnessSourceEffect<init>

Popular methods of SwitchPowerToughnessSourceEffect

  • discard

Popular in Java

  • Running tasks concurrently on multiple threads
  • startActivity (Activity)
  • onCreateOptionsMenu (Activity)
  • getExternalFilesDir (Context)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JOptionPane (javax.swing)
  • JTextField (javax.swing)
  • Top Sublime Text plugins
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