- Fixed AI part for Meloku, the Clouded Mirror.

This commit is contained in:
jendave
2011-08-06 03:33:20 +00:00
parent eba1086cb5
commit ce1ee3ae9f

View File

@@ -8564,10 +8564,20 @@ public class CardFactory_Creatures {
});
PlayerZone hand = AllZone.getZone(Constant.Zone.Hand, card.getController());
if(!land.isEmpty()) {
Object o = AllZone.Display.getChoiceOptional("Select target Land", land.toArray());
Card l = (Card) o;
AllZone.GameAction.moveTo(hand, l);
if (card.getController().equals(Constant.Player.Human))
{
if(!land.isEmpty()) {
Object o = AllZone.Display.getChoiceOptional("Select target Land", land.toArray());
Card l = (Card) o;
AllZone.GameAction.moveTo(hand, l);
}
}
else
{
land.shuffle();
Card crd = land.get(0);
if (crd!=null)
AllZone.GameAction.moveTo(hand, crd);
}
}//resolve()
@@ -8584,6 +8594,14 @@ public class CardFactory_Creatures {
});
return land.size() > 0;
}
public boolean canPlayAI()
{
PlayerZone play = AllZone.getZone(Constant.Zone.Play, Constant.Player.Computer);
CardList land = new CardList(play.getCards());
land = land.getType("Land");
return land.size() > 5;
}
};//SpellAbility
card.addSpellAbility(ability);
ability.setDescription("1, Return a land you control to its owner's hand: Put a 1/1 blue Illusion creature token with flying into play.");