forked from External/mage
* Fixed that modes (if more than one was selected) did not resolve in the order they are written on the card but in order of selection by user.
This commit is contained in:
parent
0fb7cf8317
commit
4d7f1a05bf
8 changed files with 51 additions and 22 deletions
|
|
@ -98,7 +98,7 @@ public class StackAbilityView extends CardView {
|
|||
private void updateTargets(Game game, StackAbility ability) {
|
||||
List<String> names = new ArrayList<>();
|
||||
for(UUID modeId : ability.getModes().getSelectedModes()) {
|
||||
ability.getModes().setMode(ability.getModes().get(modeId));
|
||||
ability.getModes().setActiveMode(modeId);
|
||||
if (ability.getTargets().size() > 0) {
|
||||
setTargets(ability.getTargets());
|
||||
} else {
|
||||
|
|
@ -129,7 +129,7 @@ public class StackAbilityView extends CardView {
|
|||
if (ability.isModal()) {
|
||||
Modes modes = ability.getModes();
|
||||
for(UUID modeId : modes.getSelectedModes()) {
|
||||
modes.setMode(modes.get(modeId));
|
||||
modes.setActiveMode(modeId);
|
||||
this.rules.add("<span color='green'><i>Chosen mode: " + ability.getEffects().getText(modes.get(modeId))+"</i></span>");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue