- Added Crackleburr

- Added untapYType<amount/valid/description> cost type
This commit is contained in:
moomarc
2012-09-08 08:32:12 +00:00
parent 671728e4b1
commit 3bc1f0e390
6 changed files with 395 additions and 6 deletions

View File

@@ -288,7 +288,7 @@ public class CostUtil {
}
return false;
}
/**
* hasTapCost.
*
@@ -310,6 +310,27 @@ public class CostUtil {
return false;
}
/**
* hasUntapCost.
*
* @param cost
* the cost
* @param source
* the source
* @return true, if successful
*/
public static boolean hasUntapCost(final Cost cost, final Card source) {
if (cost == null) {
return true;
}
for (final CostPart part : cost.getCostParts()) {
if (part instanceof CostUntapType) {
return true;
}
}
return false;
}
/**
* Determine amount.
*