congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ForestwalkAbility.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
mage.abilities.keyword.ForestwalkAbility
constructor

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

origin: magefree/mage

public HiddenPath(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{2}{G}{G}{G}{G}");
  // Green creatures have forestwalk.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD,
      new GainAbilityAllEffect(new ForestwalkAbility(false), Duration.WhileOnBattlefield, filter)));
}
origin: magefree/mage

public NaturesCloak(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{2}{G}");
  // Green creatures you control gain forestwalk until end of turn.
  this.getSpellAbility().addEffect(new GainAbilityControlledEffect(
      new ForestwalkAbility(false), Duration.EndOfTurn, filter));
}
origin: magefree/mage

public LumberingSatyr(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{G}{G}");
  this.subtype.add(SubType.SATYR);
  this.subtype.add(SubType.BEAST);
  this.power = new MageInt(5);
  this.toughness = new MageInt(4);
  // All creatures have forestwalk.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, 
      new GainAbilityAllEffect(new ForestwalkAbility(), Duration.WhileOnBattlefield, new FilterCreaturePermanent())));
}
origin: magefree/mage

public ElvishChampion(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{G}{G}");
  this.subtype.add(SubType.ELF);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // Other Elf creatures get +1/+1 and have forestwalk. (They can't be blocked as long as defending player controls a Forest.)
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostAllEffect(1, 1, Duration.WhileOnBattlefield, filter, true)));
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAllEffect(new ForestwalkAbility(), Duration.WhileOnBattlefield, filter, true)));
}
origin: magefree/mage

public EmeraldOryx(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{G}");
  this.subtype.add(SubType.ANTELOPE);
  this.power = new MageInt(2);
this.toughness = new MageInt(3);
  this.addAbility(new ForestwalkAbility());
}
origin: magefree/mage

public LeafDancer(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{G}{G}");
  this.subtype.add(SubType.CENTAUR);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  // Forestwalk
  this.addAbility(new ForestwalkAbility());
}
origin: magefree/mage

public SomberwaldDryad(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{G}");
  this.subtype.add(SubType.DRYAD);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  this.addAbility(new ForestwalkAbility());
}
origin: magefree/mage

public SlinkingSerpent(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{U}{B}");
  this.subtype.add(SubType.SERPENT);
  this.power = new MageInt(2);
  this.toughness = new MageInt(3);
  this.addAbility(new ForestwalkAbility());
}
origin: magefree/mage

public ElvishPathcutter(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{G}");
  this.subtype.add(SubType.ELF);
  this.subtype.add(SubType.SCOUT);
  this.power = new MageInt(1);
  this.toughness = new MageInt(2);
  // {2}{G}: Target Elf creature gains forestwalk until end of turn.
  Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(new ForestwalkAbility(), Duration.EndOfTurn), new ManaCostsImpl("{2}{G}"));
  ability.addTarget(new TargetCreaturePermanent(filter));
  this.addAbility(ability);
}
origin: magefree/mage

public RushwoodDryad(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{G}");
  this.subtype.add(SubType.DRYAD);
  this.power = new MageInt(2);
  this.toughness = new MageInt(1);
  this.addAbility(new ForestwalkAbility());
}
origin: magefree/mage

public ZodiacRabbit(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{G}");
  this.subtype.add(SubType.RABBIT);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  // Forestwalk
  this.addAbility(new ForestwalkAbility());
}
origin: magefree/mage

public CatWarriors(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{G}{G}");
  this.subtype.add(SubType.CAT);
  this.subtype.add(SubType.WARRIOR);
  this.power = new MageInt(2);
  this.toughness = new MageInt(2);
  this.addAbility(new ForestwalkAbility());
}
origin: magefree/mage

public JukaiMessenger (UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{G}");
  this.subtype.add(SubType.HUMAN);
  this.subtype.add(SubType.MONK);
  this.power = new MageInt(1);
  this.toughness = new MageInt(1);
  this.addAbility(new ForestwalkAbility());
}
origin: magefree/mage

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

public WoodlotCrawler (UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{U}{B}");
  this.subtype.add(SubType.INSECT);
  this.power = new MageInt(2);
  this.toughness = new MageInt(1);
  // Forestwalk
  this.addAbility(new ForestwalkAbility());
  // Protection from green
  this.addAbility(ProtectionAbility.from(ObjectColor.GREEN));
}
origin: magefree/mage

public StalkerHag(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{B/G}{B/G}{B/G}");
  this.subtype.add(SubType.HAG);
  this.power = new MageInt(3);
  this.toughness = new MageInt(2);
  this.addAbility(new SwampwalkAbility());
  this.addAbility(new ForestwalkAbility());
}
origin: magefree/mage

public CatWarriorToken() {
  super("Cat Warrior", "2/2 green Cat Warrior creature token with forestwalk");
  availableImageSetCodes = tokenImageSets;
  this.setOriginalExpansionSetCode("PLC");
  this.getPower().modifyBaseValue(2);
  this.getToughness().modifyBaseValue(2);
  this.color.setGreen(true);
  this.getSubtype(null).add(SubType.CAT);
  this.getSubtype(null).add(SubType.WARRIOR);
  this.addCardType(CardType.CREATURE);
  this.addAbility(new ForestwalkAbility());
}
origin: magefree/mage

public YavimayaDryad(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{1}{G}{G}");
  this.subtype.add(SubType.DRYAD);
  this.power = new MageInt(2);
  this.toughness = new MageInt(1);
  // Forestwalk
  this.addAbility(new ForestwalkAbility());
  // When Yavimaya Dryad enters the battlefield, you may search your library for a Forest card and put it onto the battlefield tapped under target player's control. If you do, shuffle your library.
  Ability ability = new EntersBattlefieldTriggeredAbility(new YavimayaDryadEffect(new TargetCardInLibrary(filter)), true);
  ability.addTarget(new TargetPlayer());
  this.addAbility(ability);
}
origin: magefree/mage

public ChorusOfTheConclave(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{G}{G}{W}{W}");
  addSuperType(SuperType.LEGENDARY);
  this.subtype.add(SubType.DRYAD);
  this.power = new MageInt(3);
  this.toughness = new MageInt(8);
  // Forestwalk
  this.addAbility(new ForestwalkAbility());
  // As an additional cost to cast creature spells, you may pay any amount of mana. If you do, that creature enters the battlefield with that many additional +1/+1 counters on it.
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ChorusOfTheConclaveReplacementEffect()));
  this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ChorusOfTheConclaveReplacementEffect2()));
}
origin: magefree/mage

public JeditOjanenOfEfrava(UUID ownerId, CardSetInfo setInfo) {
  super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{G}{G}{G}");
  addSuperType(SuperType.LEGENDARY);
  this.subtype.add(SubType.CAT);
  this.subtype.add(SubType.WARRIOR);
  this.power = new MageInt(5);
  this.toughness = new MageInt(5);
  // Forestwalk
  this.addAbility(new ForestwalkAbility());
  // Whenever Jedit Ojanen of Efrava attacks or blocks, create a 2/2 green Cat Warrior creature token with forestwalk.
  this.addAbility(new AttacksOrBlocksTriggeredAbility(new CreateTokenEffect(new CatWarriorToken()), false));
}
mage.abilities.keywordForestwalkAbility<init>

Popular methods of ForestwalkAbility

    Popular in Java

    • Updating database using SQL prepared statement
    • getApplicationContext (Context)
    • scheduleAtFixedRate (ScheduledExecutorService)
    • getContentResolver (Context)
    • VirtualMachine (com.sun.tools.attach)
      A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
    • UnknownHostException (java.net)
      Thrown when a hostname can not be resolved.
    • Permission (java.security)
      Legacy security code; do not use.
    • Random (java.util)
      This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
    • Servlet (javax.servlet)
      Defines methods that all servlets must implement. A servlet is a small Java program that runs within
    • ServletException (javax.servlet)
      Defines a general exception a servlet can throw when it encounters difficulty.
    • PhpStorm for WordPress
    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