mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Fix Chained to the Rocks crash
This commit is contained in:
committed by
Anthony Calosa
parent
a7773a34f1
commit
b3b777b487
@@ -125,8 +125,9 @@ public class AttachAi extends SpellAbilityAi {
|
||||
|
||||
if (ComputerUtilAbility.getAbilitySourceName(sa).equals("Chained to the Rocks")) {
|
||||
final SpellAbility effectExile = AbilityFactory.getAbility(source.getSVar("TrigExile"), source);
|
||||
effectExile.setActivatingPlayer(ai);
|
||||
final TargetRestrictions exile_tgt = effectExile.getTargetRestrictions();
|
||||
final CardCollection targets = CardLists.filter(CardUtil.getValidCardsToTarget(exile_tgt, effectExile), CardPredicates.canBeAttached(source));
|
||||
final List<Card> targets = CardUtil.getValidCardsToTarget(exile_tgt, effectExile);
|
||||
return !targets.isEmpty();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user