- 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:
Agetian
2017-08-08 04:44:05 +00:00
parent 431d5ef8a8
commit 4fb1c866da
2 changed files with 30 additions and 0 deletions

View File

@@ -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.
*