- Fixed Survival of the Fittest AI, which was accidentally made to grab discard targets from the library, lol

This commit is contained in:
Agetian
2017-09-18 12:46:11 +00:00
parent 3d8a85a145
commit 2ee3ec303d

View File

@@ -893,9 +893,9 @@ public class SpecialCardAi {
// We appear to be playing Reanimator (or we have a reanimator card in hand already), so it's
// worth to fill the graveyard now
if (ComputerUtil.isPlayingReanimator(ai)) {
CardCollection creatsInLibByCMC = new CardCollection(creatsInLib);
Collections.sort(creatsInLibByCMC, CardLists.CmcComparatorInv);
return creatsInLibByCMC.getFirst();
CardCollection creatsInHandByCMC = new CardCollection(creatsInHand);
Collections.sort(creatsInHandByCMC, CardLists.CmcComparatorInv);
return creatsInHandByCMC.getFirst();
}
// probably nothing that is worth changing, so bail
@@ -923,13 +923,6 @@ public class SpecialCardAi {
Card bestInLib = atTargetCMCInLib != null ? atTargetCMCInLib.getFirst() : null;
if (bestInLib == null && ComputerUtil.isPlayingReanimator(ai)) {
// For Reanimator, we don't mind grabbing the biggest thing possible to recycle it again with SotF later.
CardCollection creatsInLibByCMC = new CardCollection(creatsInLib);
Collections.sort(creatsInLibByCMC, CardLists.CmcComparatorInv);
return creatsInLibByCMC.getFirst();
}
return bestInLib;
}
}