- Simplified sacrificeHuman.

This commit is contained in:
Sloth
2012-11-30 18:35:12 +00:00
parent a874711db7
commit baecbb1cf7

View File

@@ -165,15 +165,13 @@ public class SacrificeEffect extends SpellEffect {
if (list.isEmpty()) { if (list.isEmpty()) {
break; break;
} }
Object o; Card c;
if (optional) { if (optional) {
o = GuiChoose.oneOrNone("Select a card to sacrifice", list); c = GuiChoose.oneOrNone("Select a card to sacrifice", list);
} else { } else {
o = GuiChoose.one("Select a card to sacrifice", list); c = GuiChoose.one("Select a card to sacrifice", list);
} }
if (o != null) { if (c != null) {
final Card c = (Card) o;
if (destroy) { if (destroy) {
if (Singletons.getModel().getGame().getAction().destroy(c)) { if (Singletons.getModel().getGame().getAction().destroy(c)) {
sacList.add(c); sacList.add(c);