[EMA] Added Crater Hellion and edited some minor formatting.

This commit is contained in:
LevelX2 2016-05-28 11:44:10 +02:00
parent eb1ae59d11
commit 5c8c6a3aeb
22 changed files with 88 additions and 36 deletions

View file

@ -49,7 +49,7 @@ import mage.filter.predicate.mageobject.SupertypePredicate;
*
* @author LevelX
*/
public class KondasHatamoto extends CardImpl{
public class KondasHatamoto extends CardImpl {
private static final FilterControlledPermanent filter = new FilterControlledPermanent("Legendary Samurai");
private static final String rule1 = "As long as you control a legendary Samurai, {this} gets +1/+2";

View file

@ -43,7 +43,7 @@ import mage.constants.Rarity;
*
* @author Loki
*/
public class KnotvineMystic extends CardImpl{
public class KnotvineMystic extends CardImpl {
public KnotvineMystic(UUID ownerId) {
super(ownerId, 114, "Knotvine Mystic", Rarity.UNCOMMON, new CardType[]{CardType.CREATURE}, "{R}{G}{W}");

View file

@ -48,7 +48,7 @@ import java.util.UUID;
*
* @author Algid
*/
public class Memnarch extends CardImpl{
public class Memnarch extends CardImpl {
public Memnarch(UUID ownerId) {
super(ownerId, 129, "Memnarch", Rarity.RARE, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{7}");

View file

@ -0,0 +1,52 @@
/*
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
* of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* The views and conclusions contained in the software and documentation are those of the
* authors and should not be interpreted as representing official policies, either expressed
* or implied, of BetaSteward_at_googlemail.com.
*/
package mage.sets.eternalmasters;
import java.util.UUID;
/**
*
* @author LevelX2
*/
public class CraterHellion extends mage.sets.urzassaga.CraterHellion {
public CraterHellion(UUID ownerId) {
super(ownerId);
this.cardNumber = 124;
this.expansionSetCode = "EMA";
}
public CraterHellion(final CraterHellion card) {
super(card);
}
@Override
public CraterHellion copy() {
return new CraterHellion(this);
}
}

View file

@ -42,7 +42,7 @@ import mage.cards.CardImpl;
*
* @author Loki
*/
public class DrudgeSkeletons extends CardImpl{
public class DrudgeSkeletons extends CardImpl {
public DrudgeSkeletons(UUID ownerId) {
super(ownerId, 95, "Drudge Skeletons", Rarity.COMMON, new CardType[]{CardType.CREATURE}, "{1}{B}");

View file

@ -39,7 +39,7 @@ import mage.cards.CardImpl;
*
* @author Loki
*/
public class SnappingDrake extends CardImpl{
public class SnappingDrake extends CardImpl {
public SnappingDrake(UUID ownerId) {
super(ownerId, 72, "Snapping Drake", Rarity.COMMON, new CardType[]{CardType.CREATURE}, "{3}{U}");

View file

@ -50,7 +50,7 @@ import mage.game.permanent.Permanent;
*
* @author Noahsark
*/
public class GuardianOfTheAges extends CardImpl{
public class GuardianOfTheAges extends CardImpl {
public GuardianOfTheAges(UUID ownerId){
super(ownerId, 211, "Guardian of the Ages", Rarity.RARE, new CardType[]{CardType.CREATURE, CardType.ARTIFACT}, "{7}");
this.expansionSetCode = "M14";

View file

@ -43,7 +43,7 @@ import mage.cards.CardImpl;
*
* @author Backfir3
*/
public class AlbinoTroll extends CardImpl{
public class AlbinoTroll extends CardImpl {
public AlbinoTroll(UUID ownerId) {
super(ownerId, 231, "Albino Troll", Rarity.UNCOMMON, new CardType[]{CardType.CREATURE}, "{1}{G}");

View file

@ -40,7 +40,7 @@ import mage.cards.CardImpl;
*
* @author Backfir3
*/
public class CitanulCentaurs extends CardImpl{
public class CitanulCentaurs extends CardImpl {
public CitanulCentaurs(UUID ownerId) {
super(ownerId, 243, "Citanul Centaurs", Rarity.RARE, new CardType[]{CardType.CREATURE}, "{3}{G}");

View file

@ -40,7 +40,7 @@ import mage.cards.CardImpl;
*
* @author Backfir3
*/
public class CradleGuard extends CardImpl{
public class CradleGuard extends CardImpl {
public CradleGuard(UUID ownerId) {
super(ownerId, 245, "Cradle Guard", Rarity.UNCOMMON, new CardType[]{CardType.CREATURE}, "{1}{G}{G}");

View file

@ -25,20 +25,19 @@
* authors and should not be interpreted as representing official policies, either expressed
* or implied, of BetaSteward_at_googlemail.com.
*/
package mage.sets.urzassaga;
import java.util.List;
import java.util.UUID;
import mage.constants.CardType;
import mage.constants.Outcome;
import mage.constants.Rarity;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.effects.OneShotEffect;
import mage.abilities.keyword.EchoAbility;
import mage.cards.CardImpl;
import mage.constants.CardType;
import mage.constants.Outcome;
import mage.constants.Rarity;
import mage.filter.common.FilterCreaturePermanent;
import mage.game.Game;
import mage.game.permanent.Permanent;
@ -47,7 +46,7 @@ import mage.game.permanent.Permanent;
*
* @author Backfir3
*/
public class CraterHellion extends CardImpl{
public class CraterHellion extends CardImpl {
public CraterHellion(UUID ownerId) {
super(ownerId, 179, "Crater Hellion", Rarity.RARE, new CardType[]{CardType.CREATURE}, "{4}{R}{R}");
@ -58,10 +57,11 @@ public class CraterHellion extends CardImpl{
this.power = new MageInt(6);
this.toughness = new MageInt(6);
this.addAbility(new EchoAbility("{4}{R}{R}"));
// Echo 4RR (At the beginning of your upkeep, if this came under your control since the beginning of your last upkeep, sacrifice it unless you pay its echo cost.)
this.addAbility(new EchoAbility("{4}{R}{R}"));
//When Crater Hellion enters the battlefield, it deals 4 damage to each other creature.
this.addAbility(new EntersBattlefieldTriggeredAbility(new CraterHellionEffect(), false));
//When Crater Hellion enters the battlefield, it deals 4 damage to each other creature.
this.addAbility(new EntersBattlefieldTriggeredAbility(new CraterHellionEffect(), false));
}
public CraterHellion(final CraterHellion card) {
@ -79,7 +79,7 @@ class CraterHellionEffect extends OneShotEffect {
public CraterHellionEffect() {
super(Outcome.Damage);
staticText = "it deals 4 damage to each other creature";
staticText = "it deals 4 damage to each other creature";
}
public CraterHellionEffect(final CraterHellionEffect effect) {
@ -93,12 +93,12 @@ class CraterHellionEffect extends OneShotEffect {
@Override
public boolean apply(Game game, Ability source) {
List<Permanent> permanents = game.getBattlefield().getActivePermanents(new FilterCreaturePermanent(), source.getControllerId(), game);
for (Permanent permanent: permanents) {
if(!permanent.getId().equals(source.getSourceId())) {
permanent.damage(4, source.getSourceId(), game, false, true);
}
List<Permanent> permanents = game.getBattlefield().getActivePermanents(new FilterCreaturePermanent(), source.getControllerId(), game);
for (Permanent permanent : permanents) {
if (!permanent.getId().equals(source.getSourceId())) {
permanent.damage(4, source.getSourceId(), game, false, true);
}
return true;
}
return true;
}
}
}

View file

@ -39,7 +39,7 @@ import mage.cards.CardImpl;
*
* @author Backfir3
*/
public class GoblinPatrol extends CardImpl{
public class GoblinPatrol extends CardImpl {
public GoblinPatrol(UUID ownerId) {
super(ownerId, 193, "Goblin Patrol", Rarity.COMMON, new CardType[]{CardType.CREATURE}, "{R}");

View file

@ -40,7 +40,7 @@ import mage.cards.CardImpl;
*
* @author Backfir3
*/
public class GoblinWarBuggy extends CardImpl{
public class GoblinWarBuggy extends CardImpl {
public GoblinWarBuggy(UUID ownerId) {
super(ownerId, 196, "Goblin War Buggy", Rarity.COMMON, new CardType[]{CardType.CREATURE}, "{1}{R}");

View file

@ -41,7 +41,7 @@ import mage.cards.CardImpl;
*
* @author Backfir3
*/
public class HeraldOfSerra extends CardImpl{
public class HeraldOfSerra extends CardImpl {
public HeraldOfSerra(UUID ownerId) {
super(ownerId, 17, "Herald of Serra", Rarity.RARE, new CardType[]{CardType.CREATURE}, "{2}{W}{W}");

View file

@ -46,7 +46,7 @@ import mage.cards.CardImpl;
*
* @author Backfir3
*/
public class LightningDragon extends CardImpl{
public class LightningDragon extends CardImpl {
public LightningDragon(UUID ownerId) {
super(ownerId, 202, "Lightning Dragon", Rarity.RARE, new CardType[]{CardType.CREATURE}, "{2}{R}{R}");

View file

@ -39,7 +39,7 @@ import mage.cards.CardImpl;
*
* @author Backfir3
*/
public class PouncingJaguar extends CardImpl{
public class PouncingJaguar extends CardImpl {
public PouncingJaguar(UUID ownerId) {
super(ownerId, 269, "Pouncing Jaguar", Rarity.COMMON, new CardType[]{CardType.CREATURE}, "{G}");

View file

@ -43,7 +43,7 @@ import mage.cards.CardImpl;
*
* @author Backfir3
*/
public class SanguineGuard extends CardImpl{
public class SanguineGuard extends CardImpl {
public SanguineGuard(UUID ownerId) {
super(ownerId, 155, "Sanguine Guard", Rarity.UNCOMMON, new CardType[]{CardType.CREATURE}, "{1}{B}{B}");

View file

@ -41,7 +41,7 @@ import mage.cards.CardImpl;
*
* @author Backfir3
*/
public class ShivanRaptor extends CardImpl{
public class ShivanRaptor extends CardImpl {
public ShivanRaptor(UUID ownerId) {
super(ownerId, 215, "Shivan Raptor", Rarity.UNCOMMON, new CardType[]{CardType.CREATURE}, "{2}{R}");

View file

@ -42,7 +42,7 @@ import mage.cards.CardImpl;
*
* @author Backfir3
*/
public class UnworthyDead extends CardImpl{
public class UnworthyDead extends CardImpl {
public UnworthyDead(UUID ownerId) {
super(ownerId, 163, "Unworthy Dead", Rarity.COMMON, new CardType[]{CardType.CREATURE}, "{1}{B}");

View file

@ -39,7 +39,7 @@ import mage.cards.CardImpl;
*
* @author Backfir3
*/
public class ViashinoOutrider extends CardImpl{
public class ViashinoOutrider extends CardImpl {
public ViashinoOutrider(UUID ownerId) {
super(ownerId, 223, "Viashino Outrider", Rarity.COMMON, new CardType[]{CardType.CREATURE}, "{2}{R}");

View file

@ -40,7 +40,7 @@ import mage.cards.CardImpl;
*
* @author Backfir3
*/
public class VugLizard extends CardImpl{
public class VugLizard extends CardImpl {
public VugLizard(UUID ownerId) {
super(ownerId, 227, "Vug Lizard", Rarity.UNCOMMON, new CardType[]{CardType.CREATURE}, "{1}{R}{R}");

View file

@ -39,7 +39,7 @@ import mage.cards.CardImpl;
*
* @author Backfir3
*/
public class WindingWurm extends CardImpl{
public class WindingWurm extends CardImpl {
public WindingWurm(UUID ownerId) {
super(ownerId, 285, "Winding Wurm", Rarity.COMMON, new CardType[]{CardType.CREATURE}, "{4}{G}");