fixed typo

This commit is contained in:
glerman 2015-06-21 12:26:39 +03:00 committed by Gal Lerman
parent 1567c4efe9
commit 15e3101bf4
3 changed files with 9 additions and 9 deletions

View file

@ -33,7 +33,7 @@ import mage.abilities.common.DiesCreatureTriggeredAbility;
import mage.abilities.common.EntersBattlefieldAbility;
import mage.abilities.condition.common.LastTimeCounterRemovedCondition;
import mage.abilities.decorator.ConditionalTriggeredAbility;
import mage.abilities.effects.CopyCardAffect;
import mage.abilities.effects.CopyCardEffect;
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
import mage.abilities.keyword.FlyingAbility;
import mage.abilities.keyword.VanishingSacrificeAbility;
@ -67,7 +67,7 @@ public class Chronozoa extends CardImpl {
this.addAbility(new VanishingUpkeepAbility(timeCounters));
this.addAbility(new VanishingSacrificeAbility());
// When Chronozoa is put into a graveyard from play, if it had no time counters on it, put two tokens into play that are copies of it.
this.addAbility(new ConditionalTriggeredAbility(new DiesCreatureTriggeredAbility(new CopyCardAffect(this, numCopies), false),
this.addAbility(new ConditionalTriggeredAbility(new DiesCreatureTriggeredAbility(new CopyCardEffect(this, numCopies), false),
new LastTimeCounterRemovedCondition(),
"When Chronozoa is put into a graveyard from play, if it had no time counters on it, put two tokens into play that are copies of it."));
}

View file

@ -29,7 +29,7 @@ package mage.sets.returntoravnica;
import java.util.UUID;
import mage.abilities.effects.CopyCardAffect;
import mage.abilities.effects.CopyCardEffect;
import mage.constants.CardType;
import mage.constants.Rarity;
import mage.constants.Zone;
@ -83,7 +83,7 @@ public class PackRat extends CardImpl {
// Pack Rat's power and toughness are each equal to the number of Rats you control.
this.addAbility(new SimpleStaticAbility(Zone.ALL, new SetPowerToughnessSourceEffect(new PermanentsOnBattlefieldCount(filter), Duration.EndOfGame)));
// {2}{B}, Discard a card: Put a token onto the battlefield that's a copy of Pack Rat.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CopyCardAffect(this, 1), new ManaCostsImpl("{2}{B}"));
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CopyCardEffect(this, 1), new ManaCostsImpl("{2}{B}"));
ability.addCost(new DiscardCardCost());
this.addAbility(ability);
}

View file

@ -12,19 +12,19 @@ import mage.util.CardUtil;
/**
* Created by glerman on 20/6/15.
*/
public class CopyCardAffect extends OneShotEffect {
public class CopyCardEffect extends OneShotEffect {
private final Card card;
private final int copies;
public CopyCardAffect(Card card, int copies) {
public CopyCardEffect(Card card, int copies) {
super(Outcome.PutCreatureInPlay);
this.card = card;
this.copies = copies;
staticText = "Put a token onto the battlefield that's a copy of {this}";
}
public CopyCardAffect(final CopyCardAffect effect) {
public CopyCardEffect(final CopyCardEffect effect) {
super(effect);
this.card = effect.card;
this.copies = effect.copies;
@ -45,7 +45,7 @@ public class CopyCardAffect extends OneShotEffect {
}
@Override
public CopyCardAffect copy() {
return new CopyCardAffect(this);
public CopyCardEffect copy() {
return new CopyCardEffect(this);
}
}