Updated Overabundance

This commit is contained in:
elliott-king 2017-02-01 16:56:56 -05:00
parent 7a2e0a0476
commit dbcd3cb27d

View file

@ -28,13 +28,20 @@
package mage.cards.o;
import java.util.UUID;
import mage.abilities.common.TapForManaAllTriggeredAbility;
import mage.abilities.common.TapForManaAllTriggeredManaAbility;
import mage.abilities.effects.common.AddManaOfAnyTypeProducedEffect;
import mage.abilities.effects.common.DamageTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SetTargetPointer;
import mage.filter.common.FilterLandPermanent;
/**
*
* @author anonymous
* @author elliott-king
*/
public class Overabundance extends CardImpl {
@ -43,6 +50,17 @@ public class Overabundance extends CardImpl {
// Whenever a player taps a land for mana, that player adds one mana to his or her mana pool of any type that land produced, and Overabundance deals 1 damage to him or her.
this.addAbility(new TapForManaAllTriggeredManaAbility(
new AddManaOfAnyTypeProducedEffect(),
new FilterLandPermanent( "a player taps a land"),
SetTargetPointer.PERMANENT
));
this.addAbility(new TapForManaAllTriggeredAbility(
new DamageTargetEffect(1, true, "that player"),
new FilterLandPermanent("a player taps a land"),
SetTargetPointer.PLAYER
));
}
public Overabundance(final Overabundance card) {