mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +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
|
// We appear to be playing Reanimator (or we have a reanimator card in hand already), so it's
|
||||||
// worth to fill the graveyard now
|
// worth to fill the graveyard now
|
||||||
if (ComputerUtil.isPlayingReanimator(ai)) {
|
if (ComputerUtil.isPlayingReanimator(ai)) {
|
||||||
CardCollection creatsInLibByCMC = new CardCollection(creatsInLib);
|
CardCollection creatsInHandByCMC = new CardCollection(creatsInHand);
|
||||||
Collections.sort(creatsInLibByCMC, CardLists.CmcComparatorInv);
|
Collections.sort(creatsInHandByCMC, CardLists.CmcComparatorInv);
|
||||||
return creatsInLibByCMC.getFirst();
|
return creatsInHandByCMC.getFirst();
|
||||||
}
|
}
|
||||||
|
|
||||||
// probably nothing that is worth changing, so bail
|
// probably nothing that is worth changing, so bail
|
||||||
@@ -923,13 +923,6 @@ public class SpecialCardAi {
|
|||||||
|
|
||||||
Card bestInLib = atTargetCMCInLib != null ? atTargetCMCInLib.getFirst() : null;
|
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;
|
return bestInLib;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user