mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
Game: fixed that search by card name was able to return a wrong card (example: cheat command)
This commit is contained in:
parent
6144dc64b7
commit
1dea98cf1f
13 changed files with 39 additions and 52 deletions
|
|
@ -2222,7 +2222,7 @@ public class ComputerPlayer extends PlayerImpl implements Player {
|
|||
if (!landSets.isEmpty()) {
|
||||
criteria.setCodes(landSets.toArray(new String[landSets.size()]));
|
||||
}
|
||||
criteria.rarities(Rarity.LAND).nameExact(landName);
|
||||
criteria.rarities(Rarity.LAND).name(landName);
|
||||
List<CardInfo> cards = CardRepository.instance.findCards(criteria);
|
||||
|
||||
if (cards.isEmpty()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue