mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- Prevent a crash when testing Exert triggers (SA activator was not set).
This commit is contained in:
@@ -1135,6 +1135,7 @@ public class AiAttackController {
|
||||
sa = AbilityFactory.getAbility(c, t.getParam("Execute"));
|
||||
}
|
||||
if (sa.usesTargeting()) {
|
||||
sa.setActivatingPlayer(c.getController());
|
||||
if (CardUtil.getValidCardsToTarget(sa.getTargetRestrictions(), sa).isEmpty()) {
|
||||
missTarget = true;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user