Avoid removing source card from lists

This commit is contained in:
drdev
2013-12-10 00:17:46 +00:00
parent 14a7176325
commit c65031ea31
2 changed files with 0 additions and 14 deletions

View File

@@ -121,9 +121,6 @@ public class CostDiscard extends CostPartWithList {
}
}
else {
if (source.isInZone(ZoneType.Hand)) {
handList.remove(source); //source can't pay for itself
}
if (type.equals("Hand")) {
// this will always work
}
@@ -178,10 +175,6 @@ public class CostDiscard extends CostPartWithList {
return handList.contains(source) && executePayment(ability, source);
}
if (source.isInZone(ZoneType.Hand)) {
handList.remove(source); //ensure source can't be discarded to pay its own additional cost
}
if (discardType.equals("Hand")) {
return executePayment(ability, handList);
}

View File

@@ -183,9 +183,6 @@ public class CostExile extends CostPartWithList {
return list.contains(source);
}
if (source.isInZone(this.from)) {
list.remove(source); //source can't pay for itself
}
list = CardLists.getValidCards(list, type.split(";"), activator, source);
final Integer amount = this.convertAmount();
@@ -248,10 +245,6 @@ public class CostExile extends CostPartWithList {
return source.getZone() == activator.getZone(from) && GuiDialog.confirm(source, source.getName() + " - Exile?") && executePayment(ability, source);
}
if (source.isInZone(this.from)) {
list.remove(source); //ensure source can't be exiled to pay its own additional cost
}
if (type.equals("All")) {
for (final Card card : list) {
executePayment(ability, card);