mirror of
https://github.com/magefree/mage.git
synced 2026-01-18 09:19:56 -08:00
44 lines
1.3 KiB
Java
44 lines
1.3 KiB
Java
package mage.cards.a;
|
|
|
|
import mage.MageInt;
|
|
import mage.abilities.Ability;
|
|
import mage.abilities.common.AttacksTriggeredAbility;
|
|
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
|
import mage.abilities.effects.common.LoseLifeSourceControllerEffect;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.constants.SubType;
|
|
|
|
import java.util.UUID;
|
|
|
|
/**
|
|
* @author TheElk801
|
|
*/
|
|
public final class AudaciousThief extends CardImpl {
|
|
|
|
public AudaciousThief(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{B}");
|
|
|
|
this.subtype.add(SubType.HUMAN);
|
|
this.subtype.add(SubType.ROGUE);
|
|
this.power = new MageInt(2);
|
|
this.toughness = new MageInt(2);
|
|
|
|
// Whenever Audacious Thief attacks, you draw a card and you lose 1 life.
|
|
Ability ability = new AttacksTriggeredAbility(
|
|
new DrawCardSourceControllerEffect(1).concatBy("you"), false
|
|
);
|
|
ability.addEffect(new LoseLifeSourceControllerEffect(1).concatBy("and"));
|
|
this.addAbility(ability);
|
|
}
|
|
|
|
private AudaciousThief(final AudaciousThief card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public AudaciousThief copy() {
|
|
return new AudaciousThief(this);
|
|
}
|
|
}
|