forked from External/mage
48 lines
1.5 KiB
Java
48 lines
1.5 KiB
Java
package mage.cards.c;
|
|
|
|
import mage.MageInt;
|
|
import mage.abilities.common.SimpleStaticAbility;
|
|
import mage.abilities.condition.common.SourceEnteredThisTurnCondition;
|
|
import mage.abilities.decorator.ConditionalContinuousEffect;
|
|
import mage.abilities.effects.common.continuous.GainAbilitySourceEffect;
|
|
import mage.abilities.keyword.HasteAbility;
|
|
import mage.abilities.keyword.IndestructibleAbility;
|
|
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 CrewCaptain extends CardImpl {
|
|
|
|
public CrewCaptain(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{B}{R}{G}");
|
|
|
|
this.subtype.add(SubType.HUMAN);
|
|
this.subtype.add(SubType.WARRIOR);
|
|
this.power = new MageInt(4);
|
|
this.toughness = new MageInt(2);
|
|
|
|
// Haste
|
|
this.addAbility(HasteAbility.getInstance());
|
|
|
|
// Crew Captain has indestructible as long as it entered the battlefield this turn.
|
|
this.addAbility(new SimpleStaticAbility(new ConditionalContinuousEffect(
|
|
new GainAbilitySourceEffect(IndestructibleAbility.getInstance()), SourceEnteredThisTurnCondition.DID,
|
|
"{this} has indestructible as long as it entered the battlefield this turn"
|
|
)));
|
|
}
|
|
|
|
private CrewCaptain(final CrewCaptain card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public CrewCaptain copy() {
|
|
return new CrewCaptain(this);
|
|
}
|
|
}
|