mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Added Crackleburr
- Added untapYType<amount/valid/description> cost type
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user