Additional comment for #7014

This commit is contained in:
Oleg Agafonov 2020-12-28 18:36:07 +04:00
parent dbea1e35eb
commit ee8d459c8a

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();