mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- AI: Avoid infinitely activating AF Untap on another permanent that will then be used to untap the first one (e.g. 2x Kiora's Follower)
This commit is contained in:
@@ -73,6 +73,15 @@ public class Cost {
|
||||
return false;
|
||||
}
|
||||
|
||||
public final boolean hasOnlySpecificCostType(Class<? extends CostPart> costType) {
|
||||
for (CostPart p : getCostParts()) {
|
||||
if (!costType.isInstance(p)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the cost parts.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user