- AI is not good at considering targets for Detention Sphere on its own side of the battlefield (and will commonly miscast it that way if the opponent controls no nonland permanents), so don't consider them for now.

This commit is contained in:
Agetian
2017-01-18 17:29:10 +00:00
parent eac6930199
commit a7f5b9f6da

View File

@@ -45,7 +45,8 @@ public class PermanentNoncreatureAi extends PermanentAi {
final CardCollection list = CardLists.getValidCards(game.getCardsIn(origin), tgt.getValidTgts(), ai, host,
effectExile);
CardCollection targets = CardLists.getTargetableCards(list, sa);
if (sa.getHostCard().getName().equals("Suspension Field")) {
if (sa.getHostCard().getName().equals("Suspension Field")
|| sa.getHostCard().getName().equals("Detention Sphere")) {
// existing "exile until leaves" enchantments only target
// opponent's permanents
targets = CardLists.filterControlledBy(targets, ai.getOpponents());