mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
Merge pull request #747 from myersn024/master
Implemented ArenaOfTheAncients.java
This commit is contained in:
commit
e836671d22
1 changed files with 56 additions and 0 deletions
56
Mage.Sets/src/mage/sets/legends/ArenaOfTheAncients.java
Normal file
56
Mage.Sets/src/mage/sets/legends/ArenaOfTheAncients.java
Normal file
|
@ -0,0 +1,56 @@
|
|||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package mage.sets.legends;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.common.DontUntapInControllersUntapStepAllEffect;
|
||||
import mage.abilities.effects.common.TapAllEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.Rarity;
|
||||
import mage.constants.TargetController;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author nickmyers
|
||||
*/
|
||||
public class ArenaOfTheAncients extends CardImpl {
|
||||
|
||||
final static FilterCreaturePermanent legendaryFilter = new FilterCreaturePermanent("all legendary creatures");
|
||||
static {
|
||||
legendaryFilter.add(new SupertypePredicate("Legendary"));
|
||||
}
|
||||
|
||||
public ArenaOfTheAncients(UUID ownerId) {
|
||||
super(ownerId, 215, "Arena Of The Ancients", Rarity.RARE, new CardType[]{CardType.ARTIFACT}, "{3}");
|
||||
this.expansionSetCode = "LEG";
|
||||
|
||||
// When Arena of the Ancients enters the battlefield, tap all Legendary creatures
|
||||
Ability tapAllLegendsAbility = new EntersBattlefieldTriggeredAbility(new TapAllEffect(legendaryFilter));
|
||||
this.addAbility(tapAllLegendsAbility);
|
||||
|
||||
// Legendary creatures don't untap during their controllers' untap steps
|
||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new DontUntapInControllersUntapStepAllEffect(Duration.WhileOnBattlefield, TargetController.ANY, legendaryFilter)));
|
||||
|
||||
}
|
||||
|
||||
public ArenaOfTheAncients(final ArenaOfTheAncients card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ArenaOfTheAncients copy() {
|
||||
return new ArenaOfTheAncients(this);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue