forked from External/mage
Playable mana calculation improved:
* server: fixed server crashes on usage of multiple permanents with {Any} mana abilities (example: Energy Refractor, related to #11285);
* AI: fixed game freezes and errors on computer's {Any} mana usage (closes #9467, closes #6419);
This commit is contained in:
parent
19f7ba8937
commit
2298ebc5f5
11 changed files with 504 additions and 221 deletions
|
|
@ -2765,7 +2765,7 @@ public class VerifyCardDataTest {
|
|||
List<Card> cardsList = new ArrayList<>(CardScanner.getAllCards());
|
||||
Map<String, Integer> cardRates = new HashMap<>();
|
||||
for (Card card : cardsList) {
|
||||
int curRate = RateCard.rateCard(card, null, false);
|
||||
int curRate = RateCard.rateCard(card, Collections.emptyList(), false);
|
||||
int prevRate = cardRates.getOrDefault(card.getName(), 0);
|
||||
if (prevRate == 0) {
|
||||
cardRates.putIfAbsent(card.getName(), curRate);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue