mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Recombine trigger check
This commit is contained in:
@@ -1439,7 +1439,21 @@ public class AiAttackController {
|
||||
}
|
||||
SpellAbility sa = st.getPayingTrigSA();
|
||||
if (sa == null) {
|
||||
continue;
|
||||
// not the delayed variant
|
||||
for (Trigger t : c.getTriggers()) {
|
||||
if (!TriggerType.Exerted.equals(t.getMode())) {
|
||||
continue;
|
||||
}
|
||||
sa = t.ensureAbility();
|
||||
if (c.getController().isAI()) {
|
||||
PlayerControllerAi aic = ((PlayerControllerAi) c.getController().getController());
|
||||
if (!aic.getAi().doTrigger(sa, false)) {
|
||||
missTarget = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (sa.usesTargeting()) {
|
||||
sa.setActivatingPlayer(c.getController(), true);
|
||||
|
||||
Reference in New Issue
Block a user