- Fixed possible duplication in TwoPiles AI.

This commit is contained in:
Sloth
2013-05-12 19:50:42 +00:00
parent f3dd9404bf
commit 92f871a470

View File

@@ -112,14 +112,13 @@ public class TwoPilesEffect extends SpellAbilityEffect {
for (Card c : pool) {
if (c.getCMC() >= biggest.getCMC()) {
biggest = c;
}
if (c.getCMC() <= smallest.getCMC()) {
} else if (c.getCMC() <= smallest.getCMC()) {
smallest = c;
}
}
pile1.add(biggest);
if (size > 3) {
if (size > 3 && !pile1.contains(smallest)) {
pile1.add(smallest);
}
for (Card c : pool) {