mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +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"));
|
sa = AbilityFactory.getAbility(c, t.getParam("Execute"));
|
||||||
}
|
}
|
||||||
if (sa.usesTargeting()) {
|
if (sa.usesTargeting()) {
|
||||||
|
sa.setActivatingPlayer(c.getController());
|
||||||
if (CardUtil.getValidCardsToTarget(sa.getTargetRestrictions(), sa).isEmpty()) {
|
if (CardUtil.getValidCardsToTarget(sa.getTargetRestrictions(), sa).isEmpty()) {
|
||||||
missTarget = true;
|
missTarget = true;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user