- Temporary fix for lands played from outside the hand having triggers fired delayed (i hope someone knows some more about inputs than me).

This commit is contained in:
Sloth
2014-04-26 18:41:07 +00:00
parent 7d797219a9
commit ddab7674be

View File

@@ -106,14 +106,15 @@ public class CField implements ICDoc {
// should I check for who owns these cards? Are there any abilities to be played from opponent's graveyard?
final SpellAbility ab = player.getController().getAbilityToPlay(c.getAllPossibleAbilities(player, true));
if ( null != ab) {
game.getAction().invoke(new Runnable(){ @Override public void run(){
game.getAction().invoke(new Runnable(){
@Override public void run() {
HumanPlay.playSpellAbility(player, ab);
game.getStack().addAllTirggeredAbilitiesToStack();
}});
}
}
};
Function<Byte, Void> manaAction = new Function<Byte, Void>() {
public Void apply(Byte colorCode) {
if (CField.this.player.getLobbyPlayer() == CField.this.viewer) {
@@ -127,7 +128,6 @@ public class CField implements ICDoc {
}
};
view.getDetailsPanel().setupMouseActions(handAction, libraryAction, exileAction, graveAction, flashBackAction, manaAction);
}