mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
Added Confusion in the Ranks.
This commit is contained in:
parent
5776452760
commit
8d28883f7c
3 changed files with 136 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue