return ret;
}
public static CardSimList removeRestrictedCards(String key, CardSimList list, int phase, boolean ownTurn, VirtualMatch vMatch)
{
CardSimList ret = new CardSimList();
for (int i = 0; i < list.size(); i++)
{
CardSim card = list.getCard(i);
int player = card.getOwner();
int opponent = (card.getOwner()+1)%2;
AIEnhancedCardHints hints = AIEnhancedCardHints.getHints(card);
if (hints.hasHintType(key, HintAll.HINT_TYPE_PLAY_RESTRICTION))
{
if (hints.hasHint(key, HintAll.PR_ONLY_WHEN_OPPONENT_MORE_LANDS))
{
if (vMatch.getLand(player).size()>=vMatch.getLand(opponent).size())
continue;
}
}
ret.addCard(card);
}
return ret;
}