mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- Fixed Survival of the Fittest AI, which was accidentally made to grab discard targets from the library, lol
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user