Merge origin/master

This commit is contained in:
LevelX2 2020-12-28 18:36:41 +01:00
commit c48a03ddfc

View file

@ -482,6 +482,13 @@ public enum CardRepository {
return Collections.emptyList();
}
/**
* Warning, don't use db functions in card's code - it generate heavy db loading in AI simulations. If you
* need that feature then check for simulation mode. See https://github.com/magefree/mage/issues/7014
*
* @param criteria
* @return
*/
public List<CardInfo> findCards(CardCriteria criteria) {
try {
QueryBuilder<CardInfo, Object> queryBuilder = cardDao.queryBuilder();