mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Added card "Hidden Base" and its abilities and effects
This commit is contained in:
parent
a3f74d8585
commit
b92b5d344d
2 changed files with 50 additions and 1 deletions
|
@ -17,6 +17,9 @@ import mage.filter.FilterCard;
|
|||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author Merlingilb
|
||||
*/
|
||||
public class GeneralOrgana extends CardImpl {
|
||||
public GeneralOrgana(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{W}{U}");
|
||||
|
|
|
@ -1,4 +1,50 @@
|
|||
package mage.cards.h;
|
||||
|
||||
public class HiddenBase {
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.common.TapSourceCost;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
|
||||
import mage.abilities.keyword.HasteAbility;
|
||||
import mage.abilities.mana.ColorlessManaAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.target.TargetPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author Merlingilb
|
||||
*/
|
||||
public class HiddenBase extends CardImpl {
|
||||
|
||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("Starship creature");
|
||||
|
||||
static {
|
||||
filter.add(SubType.STARSHIP.getPredicate());
|
||||
}
|
||||
|
||||
public HiddenBase(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
|
||||
|
||||
//{T}: Add {C}.
|
||||
this.addAbility(new ColorlessManaAbility());
|
||||
|
||||
//{T}: Target starship creature gains haste until end of turn.
|
||||
SimpleActivatedAbility simpleActivatedAbility = new SimpleActivatedAbility(
|
||||
new GainAbilityTargetEffect(HasteAbility.getInstance(), Duration.EndOfTurn), new TapSourceCost());
|
||||
simpleActivatedAbility.addTarget(new TargetPermanent(filter));
|
||||
this.addAbility(simpleActivatedAbility);
|
||||
}
|
||||
|
||||
public HiddenBase(HiddenBase card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HiddenBase copy() {
|
||||
return new HiddenBase(this);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue