Prevent race condition when selecting multiple abilities using Shift+click

This commit is contained in:
drdev
2014-11-27 02:05:26 +00:00
parent 2cb2c266b3
commit 4c6bd6a715
9 changed files with 77 additions and 149 deletions

View File

@@ -526,7 +526,7 @@ public class PlayArea extends CardPanelContainer implements CardPanelMouseListen
@Override
public final void mouseRightClicked(final CardPanel panel, final MouseEvent evt) {
selectCard(panel, new MouseTriggerEvent(evt), false);
selectCard(panel, new MouseTriggerEvent(evt), evt.isShiftDown()); //select entire stack if shift key down
super.mouseRightClicked(panel, evt);
}

View File

@@ -378,7 +378,7 @@ public class PlayerControllerForTests extends PlayerController {
}
@Override
public SpellAbility chooseSpellAbilityToPlay() {
public List<SpellAbility> chooseSpellAbilityToPlay() {
//TODO: This method has to return the spellability chosen by player
// It should not play the sa right from here. The code has been left as it is to quickly adapt to changed playercontroller interface
if (playerActions != null) {