- Fixed canPlayAI() for the etbDestroyTgt keyword.

This commit is contained in:
jendave
2011-08-06 13:13:39 +00:00
parent 383abdcbcb
commit 4bfb27dc63

View File

@@ -2945,17 +2945,17 @@ public class CardFactory implements NewConstants {
hCards = hCards.getValidCards(Tgts,card.getController(),card);
hCards = hCards.getTargetableCards(card);
if (hCards.size() > 0)
return true;
return super.canPlayAI();
CardList cCards = new CardList(AllZone.getZone(Constant.Zone.Play, AllZone.ComputerPlayer).getCards());
cCards = cCards.getValidCards(Tgts,card.getController(),card);
cCards = cCards.getTargetableCards(card);
if (cCards.size() == 0)
return true;
return super.canPlayAI();
else
{
if (r.nextInt(100) > 67)
return true;
return super.canPlayAI();
}
return false;