Added Confusion in the Ranks.

This commit is contained in:
emerald000 2016-04-15 14:53:19 -04:00
parent 5776452760
commit 8d28883f7c
3 changed files with 136 additions and 0 deletions

View file

@ -107,6 +107,10 @@ public class ExchangeControlTargetEffect extends ContinuousEffectImpl {
UUID uuid = source.getTargets().get(1).getFirstTarget();
permanent2 = game.getPermanent(uuid);
}
else if (permanent2 == null) {
UUID uuid = source.getTargets().get(0).getFirstTarget();
permanent2 = game.getPermanent(uuid);
}
}
if (permanent1 != null && permanent2 != null) {
// exchange works only for two different controllers

View file

@ -142,6 +142,9 @@ public abstract class TargetImpl implements Target {
if (targetName.startsWith("another") || targetName.startsWith("a ") || targetName.startsWith("an ")) {
return "Select " + targetName + suffix;
}
else if (targetName.startsWith("a") || targetName.startsWith("e") || targetName.startsWith("i") || targetName.startsWith("o") || targetName.startsWith("u")) {
return "Select an " + targetName + suffix;
}
return "Select a " + targetName + suffix;
}