Tabnine Logo
DoubleStrikeAbility.getInstance
Code IndexAdd Tabnine to your IDE (free)

How to use
getInstance
method
in
mage.abilities.keyword.DoubleStrikeAbility

Best Java code snippets using mage.abilities.keyword.DoubleStrikeAbility.getInstance (Showing top 20 results out of 315)

origin: magefree/mage

public BorosSwiftblade(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{R}{W}");
  this.subtype.add(SubType.HUMAN, SubType.SOLDIER);
  this.power = new MageInt(1);
  this.toughness = new MageInt(2);
  this.addAbility(DoubleStrikeAbility.getInstance());
}
origin: magefree/mage

public TwoHeadedCerberus(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{R}{R}");
  this.subtype.add(SubType.HOUND);
  this.power = new MageInt(1);
  this.toughness = new MageInt(2);
  // Double strike
  this.addAbility(DoubleStrikeAbility.getInstance());
}
origin: magefree/mage

public FencingAce(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{W}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.SOLDIER);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // Double Strike
  this.addAbility(DoubleStrikeAbility.getInstance());
}
origin: magefree/mage

public DoubleCleave(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{1}{R/W}");
  this.getSpellAbility().addEffect(new GainAbilityTargetEffect(DoubleStrikeAbility.getInstance(), Duration.EndOfTurn));
  this.getSpellAbility().addTarget(new TargetCreaturePermanent());
}
origin: magefree/mage

public BloodMist(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{3}{R}");
  // At the beginning of combat on your turn, target creature you control gains double strike until end of turn.
  Ability ability = new BeginningOfCombatTriggeredAbility(new GainAbilityTargetEffect(DoubleStrikeAbility.getInstance(), Duration.EndOfTurn), TargetController.YOU, false);
  ability.addTarget(new TargetControlledCreaturePermanent());
  this.addAbility(ability);
}
origin: magefree/mage

public OrdruunVeteran(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{R}{W}");
  this.subtype.add(SubType.MINOTAUR);
  this.subtype.add(SubType.SOLDIER);
  this.power = new MageInt(3);
  this.toughness = new MageInt(1);
  // Battalion - Whenever Ordruun Veteran and at least two other creatures attack, Ordruun Veteran gains double strike until end of turn.
  this.addAbility(new BattalionAbility(new GainAbilitySourceEffect(DoubleStrikeAbility.getInstance(), Duration.EndOfTurn)));
}
origin: magefree/mage

public KinsbaileCavalier(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{W}");
  this.subtype.add(SubType.KITHKIN);
  this.subtype.add(SubType.KNIGHT);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityControlledEffect(DoubleStrikeAbility.getInstance(), Duration.WhileOnBattlefield, filter, false)));
}
origin: magefree/mage

public RockshardElemental(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{5}{R}{R}");
  this.subtype.add(SubType.ELEMENTAL);
  this.power = new MageInt(4);
  this.toughness = new MageInt(3);
  // Double strike
  this.addAbility(DoubleStrikeAbility.getInstance());
  // Morph {4}{R}{R}
  this.addAbility(new MorphAbility(this, new ManaCostsImpl("{4}{R}{R}")));
}
origin: magefree/mage

public PhalanxFormation(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{2}{W}");
  // Strive — Phalanx Formation costs {1}{W} more to cast for each target beyond the first.
  this.addAbility(new StriveAbility("{1}{W}"));
  // Any number of target creatures each gain double strike until end of turn.
  Effect effect = new GainAbilityTargetEffect(DoubleStrikeAbility.getInstance(), Duration.EndOfTurn);
  effect.setText("Any number of target creatures each gain double strike until end of turn");
  this.getSpellAbility().addEffect(effect);
  this.getSpellAbility().addTarget(new TargetCreaturePermanent(0,Integer.MAX_VALUE));
}
origin: magefree/mage

public DrogskolReaver(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{5}{W}{U}");
  this.subtype.add(SubType.SPIRIT);
  this.power = new MageInt(3);
  this.toughness = new MageInt(5);
  this.addAbility(FlyingAbility.getInstance());
  this.addAbility(DoubleStrikeAbility.getInstance());
  this.addAbility(LifelinkAbility.getInstance());
  // Whenever you gain life, draw a card.
  this.addAbility(new DrogskolReaverAbility());
}
origin: magefree/mage

public FabledHero(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{W}{W}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.SOLDIER);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // Double strike
  this.addAbility(DoubleStrikeAbility.getInstance());
  // Heroic - Whenever you cast a spell that targets Fabled Hero, put a +1/+1 counter on Fabled Hero.
  this.addAbility(new HeroicAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance())));
}
origin: magefree/mage

public SilverbladePaladin(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{W}{W}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.KNIGHT);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // Soulbond
  this.addAbility(new SoulbondAbility());
  // As long as Silverblade Paladin is paired with another creature, both creatures have double strike.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityPairedEffect(DoubleStrikeAbility.getInstance(), ruleText)));
}
origin: magefree/mage

public UncagedFury(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{2}{R}");
  // Target creature gets +1/+1 and gains double strike until end of turn.
  Effect effect = new BoostTargetEffect(1, 1, Duration.EndOfTurn);
  effect.setText("Target creature gets +1/+1");
  this.getSpellAbility().addEffect(effect);
  effect = new GainAbilityTargetEffect(DoubleStrikeAbility.getInstance(), Duration.EndOfTurn);
  effect.setText("and gains double strike until end of turn.");
  this.getSpellAbility().addEffect(effect);
  this.getSpellAbility().addTarget(new TargetCreaturePermanent());
}
origin: magefree/mage

public FlyingCraneTechnique(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{3}{U}{R}{W}");
  // Untap all creatures you control.  They gain flying and double strike until end of turn.
  this.getSpellAbility().addEffect(new UntapAllControllerEffect(FILTER_PERMANENT_CREATURES));
  Effect effect = new GainAbilityControlledEffect(FlyingAbility.getInstance(), Duration.EndOfTurn, FILTER_PERMANENT_CREATURES);
  effect.setText("They gain flying");
  this.getSpellAbility().addEffect(effect);
  effect = new GainAbilityControlledEffect(DoubleStrikeAbility.getInstance(), Duration.EndOfTurn, FILTER_PERMANENT_CREATURES);
  effect.setText("and double strike until end of turn");
  this.getSpellAbility().addEffect(effect);
}
origin: magefree/mage

public KorDuelist(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{W}");
  this.subtype.add(SubType.KOR);
  this.subtype.add(SubType.SOLDIER);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  GainAbilitySourceEffect effect = new GainAbilitySourceEffect(DoubleStrikeAbility.getInstance(), Duration.WhileOnBattlefield);
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ConditionalContinuousEffect(effect, new SourceIsEquiped(), ruleText)));
}
origin: magefree/mage

public SpringjackKnight(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{W}");
  this.subtype.add(SubType.KITHKIN);
  this.subtype.add(SubType.KNIGHT);
  this.power = new MageInt(2);
  this.toughness = new MageInt(1);
  //Whenever {this} attacks, clash with an opponent. If you win, target creature gains double strike until end of turn.
  Ability ability = new AttacksTriggeredAbility(new DoIfClashWonEffect(new GainAbilityTargetEffect(DoubleStrikeAbility.getInstance(), Duration.EndOfTurn)), false);
  ability.addTarget(new TargetCreaturePermanent());
  this.addAbility(ability);
}
origin: magefree/mage

public ImperialLancer(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{W}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.KNIGHT);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // Imperial Lancer has double strike as long as you control a Dinosaur.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD,
      new ConditionalContinuousEffect(new GainAbilitySourceEffect(DoubleStrikeAbility.getInstance(), Duration.WhileOnBattlefield),
          new PermanentsOnTheBattlefieldCondition(filter), "{this} has double strike as long as you control a Dinosaur")));
}
origin: magefree/mage

public VeteranCathar(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{G}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.SOLDIER);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // {3}{W}: Target Human gains double strike until end of turn.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(DoubleStrikeAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl<>("{3}{W}"));
  ability.addTarget(new TargetCreaturePermanent(new FilterCreaturePermanent(SubType.HUMAN, "Human")));
  this.addAbility(ability);
}
origin: magefree/mage

public CryptChampion(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{B}");
  this.subtype.add(SubType.ZOMBIE);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // Double strike
  this.addAbility(DoubleStrikeAbility.getInstance());
  // When Crypt Champion enters the battlefield, each player puts a creature card with converted mana cost 3 or less from their graveyard onto the battlefield.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new CryptChampionEffect()));
  // When Crypt Champion enters the battlefield, sacrifice it unless {R} was spent to cast it.
  this.addAbility(new EntersBattlefieldTriggeredAbility(new SacrificeSourceUnlessConditionEffect(new ManaWasSpentCondition(ColoredManaSymbol.R)), false), new ManaSpentToCastWatcher());
}
origin: magefree/mage

public ArmedDangerous(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{R}", "{3}{G}", SpellAbilityType.SPLIT_FUSED);
  // Armed
  // Target creature gets +1/+1 and gains double strike until end of turn.
  getLeftHalfCard().getSpellAbility().addEffect(new BoostTargetEffect(1, 1, Duration.EndOfTurn));
  getLeftHalfCard().getSpellAbility().addEffect(new GainAbilityTargetEffect(DoubleStrikeAbility.getInstance(), Duration.EndOfTurn));
  getLeftHalfCard().getSpellAbility().addTarget(new TargetCreaturePermanent());
  // Dangerous
  // All creatures able to block target creature this turn do so.
  getRightHalfCard().getSpellAbility().addEffect(new MustBeBlockedByAllTargetEffect(Duration.EndOfTurn));
  getRightHalfCard().getSpellAbility().addTarget(new TargetCreaturePermanent());
}
mage.abilities.keywordDoubleStrikeAbilitygetInstance

Popular methods of DoubleStrikeAbility

  • getId

Popular in Java

  • Reading from database using SQL prepared statement
  • setContentView (Activity)
  • onRequestPermissionsResult (Fragment)
  • getExternalFilesDir (Context)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top plugins for Android Studio
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