CostTapType: for Crew add Keyword "CARDNAME can't crew a vehicle",

now the cost does check that the creatures does not have this.
This commit is contained in:
Hanmac
2016-09-18 05:01:39 +00:00
parent 4ecf85d505
commit c0f7ea2983
4 changed files with 18 additions and 4 deletions

View File

@@ -1093,6 +1093,11 @@ public class HumanCostDecision extends CostDecisionMakerBase {
CardCollection typeList = CardLists.getValidCards(player.getCardsIn(ZoneType.Battlefield), type.split(";"), player,
source, ability);
typeList = CardLists.filter(typeList, Presets.UNTAPPED);
if (ability.hasParam("Crew")) {
typeList = CardLists.getNotKeyword(typeList, "CARDNAME can't crew a vehicle");
}
if (c == null && !amount.equals("Any")) {
final String sVar = ability.getSVar(amount);
// Generalize this