mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Simplify a target num check in AiController.
This commit is contained in:
@@ -662,8 +662,7 @@ public class AiController {
|
||||
if (sa instanceof SpellPermanent) {
|
||||
return canPlayFromEffectAI((SpellPermanent)sa, false, true);
|
||||
}
|
||||
if (sa.usesTargeting()
|
||||
&& sa.getTargets().getNumTargeted() < sa.getTargetRestrictions().getMinTargets(sa.getHostCard(), sa)) {
|
||||
if (sa.usesTargeting() && !sa.isTargetNumberValid()) {
|
||||
if (!sa.getTargetRestrictions().hasCandidates(sa, true)) {
|
||||
return AiPlayDecision.TargetingFailed;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user