mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
check for valid targets in resolve for The Abyss.
This commit is contained in:
@@ -3609,6 +3609,7 @@ public class GameActionUtil {
|
|||||||
@Override
|
@Override
|
||||||
public void resolve() {
|
public void resolve() {
|
||||||
if(player.equals(AllZone.HumanPlayer)) {
|
if(player.equals(AllZone.HumanPlayer)) {
|
||||||
|
if(abyss_getTargets(player, abyss).size() > 0) {
|
||||||
AllZone.InputControl.setInput( new Input() {
|
AllZone.InputControl.setInput( new Input() {
|
||||||
private static final long serialVersionUID = 4820011040853968644L;
|
private static final long serialVersionUID = 4820011040853968644L;
|
||||||
public void showMessage() {
|
public void showMessage() {
|
||||||
@@ -3625,6 +3626,7 @@ public class GameActionUtil {
|
|||||||
}//selectCard()
|
}//selectCard()
|
||||||
});//Input
|
});//Input
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else { //computer
|
else { //computer
|
||||||
CardList targets = abyss_getTargets(player,abyss);
|
CardList targets = abyss_getTargets(player,abyss);
|
||||||
CardList indestruct = targets.getKeyword("Indestructible");
|
CardList indestruct = targets.getKeyword("Indestructible");
|
||||||
|
|||||||
Reference in New Issue
Block a user