mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Implemented ArenaOfTheAncients.java
This commit is contained in:
parent
33a1ab35a5
commit
0523b79ec6
1 changed files with 68 additions and 0 deletions
68
Mage.Sets/src/mage/sets/legends/ArenaOfTheAncients.java
Normal file
68
Mage.Sets/src/mage/sets/legends/ArenaOfTheAncients.java
Normal file
|
@ -0,0 +1,68 @@
|
||||||
|
/*
|
||||||
|
* 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.condition.common.SourceOnBattelfieldCondition;
|
||||||
|
import mage.abilities.decorator.ConditionalContinuousRuleModifyingEffect;
|
||||||
|
import mage.abilities.effects.ContinuousRuleModifiyingEffect;
|
||||||
|
import mage.abilities.effects.ContinuousRuleModifiyingEffectImpl;
|
||||||
|
import mage.abilities.effects.common.DontUntapInControllersUntapStepAllEffect;
|
||||||
|
import mage.abilities.effects.common.DontUntapInControllersUntapStepTargetEffect;
|
||||||
|
import mage.abilities.effects.common.TapAllEffect;
|
||||||
|
import mage.cards.Card;
|
||||||
|
import mage.cards.CardImpl;
|
||||||
|
import mage.constants.CardType;
|
||||||
|
import mage.constants.Duration;
|
||||||
|
import mage.constants.Outcome;
|
||||||
|
import mage.constants.PhaseStep;
|
||||||
|
import mage.constants.Rarity;
|
||||||
|
import mage.constants.TargetController;
|
||||||
|
import mage.constants.Zone;
|
||||||
|
import mage.filter.common.FilterCreaturePermanent;
|
||||||
|
import mage.filter.predicate.mageobject.SupertypePredicate;
|
||||||
|
import mage.game.Game;
|
||||||
|
import mage.game.events.GameEvent;
|
||||||
|
import mage.game.events.GameEvent.EventType;
|
||||||
|
import mage.players.Player;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @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