forked from External/mage
38 lines
1.1 KiB
Java
38 lines
1.1 KiB
Java
|
|
package mage.cards.p;
|
|
|
|
import java.util.UUID;
|
|
import mage.abilities.effects.Effect;
|
|
import mage.abilities.effects.common.DrawCardTargetEffect;
|
|
import mage.abilities.effects.common.LoseLifeTargetEffect;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.target.TargetPlayer;
|
|
|
|
/**
|
|
*
|
|
* @author fireshoes
|
|
*/
|
|
public final class PainfulLesson extends CardImpl {
|
|
|
|
public PainfulLesson(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{B}");
|
|
|
|
// Target player draws two cards and loses 2 life.
|
|
this.getSpellAbility().addTarget(new TargetPlayer());
|
|
this.getSpellAbility().addEffect(new DrawCardTargetEffect(2));
|
|
Effect effect = new LoseLifeTargetEffect(2);
|
|
effect.setText("and loses 2 life");
|
|
this.getSpellAbility().addEffect(effect);
|
|
}
|
|
|
|
private PainfulLesson(final PainfulLesson card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public PainfulLesson copy() {
|
|
return new PainfulLesson(this);
|
|
}
|
|
}
|