forked from External/mage
42 lines
1.2 KiB
Java
42 lines
1.2 KiB
Java
package mage.cards.s;
|
|
|
|
import mage.MageInt;
|
|
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
|
import mage.abilities.effects.common.CreateTokenEffect;
|
|
import mage.abilities.keyword.FlyingAbility;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.constants.SubType;
|
|
import mage.game.permanent.token.SpiritToken;
|
|
|
|
import java.util.UUID;
|
|
|
|
/**
|
|
* @author TheElk801
|
|
*/
|
|
public final class SearchlightCompanion extends CardImpl {
|
|
|
|
public SearchlightCompanion(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{3}");
|
|
|
|
this.subtype.add(SubType.DRONE);
|
|
this.power = new MageInt(1);
|
|
this.toughness = new MageInt(1);
|
|
|
|
// Flying
|
|
this.addAbility(FlyingAbility.getInstance());
|
|
|
|
// When Searchlight Companion enters the battlefield, create a 1/1 colorless Spirit creature token.
|
|
this.addAbility(new EntersBattlefieldTriggeredAbility(new CreateTokenEffect(new SpiritToken())));
|
|
}
|
|
|
|
private SearchlightCompanion(final SearchlightCompanion card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public SearchlightCompanion copy() {
|
|
return new SearchlightCompanion(this);
|
|
}
|
|
}
|