mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Simplified sacrificeHuman.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user