- Fixed chooseSacrificeType.

This commit is contained in:
Sloth
2013-02-27 13:06:59 +00:00
parent c616b4e9d4
commit 84300a57a1
2 changed files with 3 additions and 9 deletions

View File

@@ -199,11 +199,11 @@ public class CostSacrifice extends CostPartWithList {
if (this.isTargetingThis()) {
this.getList().add(source);
} else if (this.getAmount().equals("All")) {
List<Card> typeList = new ArrayList<Card>(activator.getCardsIn(ZoneType.Battlefield));
/*List<Card> typeList = new ArrayList<Card>(activator.getCardsIn(ZoneType.Battlefield));
typeList = CardLists.getValidCards(typeList, this.getType().split(";"), activator, source);
if (activator.hasKeyword("You can't sacrifice creatures to cast spells or activate abilities.")) {
typeList = CardLists.getNotType(typeList, "Creature");
}
}*/
// Does the AI want to use Sacrifice All?
return false;
} else {

View File

@@ -431,15 +431,9 @@ public class ComputerUtil {
typeList.remove(prefCard);
count++;
} else {
break;
return null;
}
}
CardLists.sortByPowerAsc(typeList);
for (int i = count; i < amount; i++) {
sacList.add(typeList.get(i));
}
return sacList;
}