refactoring

This commit is contained in:
magenoxx 2012-06-12 16:30:20 +04:00
parent c22f0cf503
commit 3f1ae983c1
2 changed files with 6 additions and 5 deletions

View file

@ -27,7 +27,6 @@
*/ */
package mage.sets.darkascension; package mage.sets.darkascension;
import java.util.UUID;
import mage.Constants; import mage.Constants;
import mage.Constants.CardType; import mage.Constants.CardType;
import mage.Constants.Duration; import mage.Constants.Duration;
@ -56,6 +55,8 @@ import mage.game.permanent.token.Token;
import mage.players.Player; import mage.players.Player;
import mage.target.TargetPermanent; import mage.target.TargetPermanent;
import java.util.UUID;
/** /**
* *
* @author BetaSteward * @author BetaSteward
@ -78,7 +79,7 @@ public class SorinLordOfInnistrad extends CardImpl<SorinLordOfInnistrad> {
this.color.setBlack(true); this.color.setBlack(true);
this.color.setWhite(true); this.color.setWhite(true);
this.addAbility(new EntersBattlefieldAbility(new AddCountersSourceEffect(CounterType.LOYALTY.createInstance(3)), "")); this.addAbility(new EntersBattlefieldAbility(new AddCountersSourceEffect(CounterType.LOYALTY.createInstance(3)), null));
// +1: Put a 1/1 black Vampire creature token with lifelink onto the battlefield. // +1: Put a 1/1 black Vampire creature token with lifelink onto the battlefield.
this.addAbility(new LoyaltyAbility(new CreateTokenEffect(new VampireToken()), 1)); this.addAbility(new LoyaltyAbility(new CreateTokenEffect(new VampireToken()), 1));

View file

@ -31,10 +31,12 @@ package mage.sets.scarsofmirrodin;
import mage.Constants; import mage.Constants;
import mage.Constants.CardType; import mage.Constants.CardType;
import mage.Constants.Rarity; import mage.Constants.Rarity;
import mage.Constants.Zone;
import mage.abilities.Ability; import mage.abilities.Ability;
import mage.abilities.LoyaltyAbility; import mage.abilities.LoyaltyAbility;
import mage.abilities.common.EntersBattlefieldAbility; import mage.abilities.common.EntersBattlefieldAbility;
import mage.abilities.common.SpellCastTriggeredAbility; import mage.abilities.common.SpellCastTriggeredAbility;
import mage.abilities.common.delayed.AtEndOfTurnDelayedTriggeredAbility;
import mage.abilities.effects.OneShotEffect; import mage.abilities.effects.OneShotEffect;
import mage.abilities.effects.common.ExileTargetEffect; import mage.abilities.effects.common.ExileTargetEffect;
import mage.abilities.effects.common.GetEmblemEffect; import mage.abilities.effects.common.GetEmblemEffect;
@ -53,8 +55,6 @@ import mage.target.TargetPermanent;
import mage.target.common.TargetControlledPermanent; import mage.target.common.TargetControlledPermanent;
import java.util.UUID; import java.util.UUID;
import mage.Constants.Zone;
import mage.abilities.common.delayed.AtEndOfTurnDelayedTriggeredAbility;
/** /**
* @author nantuko * @author nantuko
@ -67,7 +67,7 @@ public class VenserTheSojourner extends CardImpl<VenserTheSojourner> {
this.subtype.add("Venser"); this.subtype.add("Venser");
this.color.setWhite(true); this.color.setWhite(true);
this.color.setBlue(true); this.color.setBlue(true);
this.addAbility(new EntersBattlefieldAbility(new AddCountersSourceEffect(CounterType.LOYALTY.createInstance(3)), "")); this.addAbility(new EntersBattlefieldAbility(new AddCountersSourceEffect(CounterType.LOYALTY.createInstance(3)), null));
// +2: Exile target permanent you own. Return it to the battlefield under your control at the beginning of the next end step. // +2: Exile target permanent you own. Return it to the battlefield under your control at the beginning of the next end step.
LoyaltyAbility ability1 = new LoyaltyAbility(new VenserTheSojournerEffect(), 2); LoyaltyAbility ability1 = new LoyaltyAbility(new VenserTheSojournerEffect(), 2);