mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- 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:
@@ -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?
|
// 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));
|
final SpellAbility ab = player.getController().getAbilityToPlay(c.getAllPossibleAbilities(player, true));
|
||||||
if ( null != ab) {
|
if ( null != ab) {
|
||||||
game.getAction().invoke(new Runnable(){ @Override public void run(){
|
game.getAction().invoke(new Runnable(){
|
||||||
HumanPlay.playSpellAbility(player, ab);
|
@Override public void run() {
|
||||||
|
HumanPlay.playSpellAbility(player, ab);
|
||||||
|
game.getStack().addAllTirggeredAbilitiesToStack();
|
||||||
}});
|
}});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
Function<Byte, Void> manaAction = new Function<Byte, Void>() {
|
Function<Byte, Void> manaAction = new Function<Byte, Void>() {
|
||||||
public Void apply(Byte colorCode) {
|
public Void apply(Byte colorCode) {
|
||||||
if (CField.this.player.getLobbyPlayer() == CField.this.viewer) {
|
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);
|
view.getDetailsPanel().setupMouseActions(handAction, libraryAction, exileAction, graveAction, flashBackAction, manaAction);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user