forked from External/mage
47 lines
1.6 KiB
Java
47 lines
1.6 KiB
Java
|
|
package mage.cards.s;
|
|
|
|
import java.util.UUID;
|
|
import mage.MageInt;
|
|
import mage.abilities.Ability;
|
|
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
|
import mage.abilities.condition.common.RaidCondition;
|
|
import mage.abilities.decorator.ConditionalInterveningIfTriggeredAbility;
|
|
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.constants.SubType;
|
|
import mage.watchers.common.PlayerAttackedWatcher;
|
|
|
|
/**
|
|
*
|
|
* @author LevelX2
|
|
*/
|
|
public final class StormFleetSpy extends CardImpl {
|
|
|
|
public StormFleetSpy(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{U}");
|
|
|
|
this.subtype.add(SubType.HUMAN);
|
|
this.subtype.add(SubType.PIRATE);
|
|
this.power = new MageInt(2);
|
|
this.toughness = new MageInt(2);
|
|
|
|
// Raid — When Storm Fleet Spy enters the battlefield, if you attacked with a creature this turn, draw a card.
|
|
Ability ability = new ConditionalInterveningIfTriggeredAbility(
|
|
new EntersBattlefieldTriggeredAbility(new DrawCardSourceControllerEffect(1)),
|
|
RaidCondition.instance,
|
|
"<i>Raid</i> — When {this} enters the battlefield, if you attacked with a creature this turn, draw a card.");
|
|
this.addAbility(ability, new PlayerAttackedWatcher());
|
|
}
|
|
|
|
public StormFleetSpy(final StormFleetSpy card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public StormFleetSpy copy() {
|
|
return new StormFleetSpy(this);
|
|
}
|
|
}
|