- 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()) {
break;
}
Object o;
Card c;
if (optional) {
o = GuiChoose.oneOrNone("Select a card to sacrifice", list);
c = GuiChoose.oneOrNone("Select a card to sacrifice", list);
} else {
o = GuiChoose.one("Select a card to sacrifice", list);
c = GuiChoose.one("Select a card to sacrifice", list);
}
if (o != null) {
final Card c = (Card) o;
if (c != null) {
if (destroy) {
if (Singletons.getModel().getGame().getAction().destroy(c)) {
sacList.add(c);