Fix Detention Sphere

This commit is contained in:
tool4EvEr
2023-02-26 10:12:17 +01:00
parent 6c168b1a4a
commit 3fdc788f33
2 changed files with 2 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ public class PermanentNoncreatureAi extends PermanentAi {
// Check for valid targets before casting
if (host.hasSVar("OblivionRing")) {
SpellAbility effectExile = AbilityFactory.getAbility(host.getSVar("TrigExile"), host);
final ZoneType origin = ZoneType.listValueOf(effectExile.getParam("Origin")).get(0);
final ZoneType origin = ZoneType.listValueOf(effectExile.getParamOrDefault("Origin", "Battlefield")).get(0);
effectExile.setActivatingPlayer(ai, true);
CardCollection targets = CardLists.getTargetableCards(game.getCardsIn(origin), effectExile);
if (sourceName.equals("Suspension Field")