Re: Card Requests
Disclaimer: Untested with current source
Here is my old code for Ley Druid if someone wants to have a look and check in:
Here is my old code for Ley Druid if someone wants to have a look and check in:
- Code: Select all
//****************************START*****************
if(cardName.equals("Ley Druid")) {
final Ability_Tap ability = new Ability_Tap(card) {
public boolean canPlayAI() {
return false;
}
public void resolve() {
if(AllZone.GameAction.isCardInPlay(getTargetCard())) {
getTargetCard().untap(); //untapping land
}
}
};//Ability_Tap
Input target = new Input() {
public void showMessage() {
AllZone.Display.showMessage("Select target tapped land to untap");
ButtonUtil.enableOnlyCancel();
}
public void selectButtonCancel() {stop();}
public void selectCard(Card c, PlayerZone zone) {
if(c.isLand() && zone.is(Constant.Zone.Play) && c.isTapped()) {
card.tap(); //tapping Ley Druid
ability.setTargetCard(c);
AllZone.Stack.add(ability);
stop();
}
}//selectCard()
};//Input
card.addSpellAbility(ability);
ability.setDescription("tap: Untap target land.");
ability.setBeforePayMana(target);
}//end Ley Druid
//**************END****************END***********************