added a shuffle to optimizedhand to avoid drawing the same hand over and over when its optimized.

adjusted normal difficulty to include 2 lands, 2 spells under 3 mana.

adjusted hard difficulty to always include 2 lands, the rest are randomly drawn. this prevents ai from being mana screwed on opening hand.
This commit is contained in:
omegablast2002@yahoo.com
2013-04-07 01:07:00 +00:00
parent 6727c1af52
commit 1c61ebddae
2 changed files with 7 additions and 5 deletions
+1
View File
@@ -128,6 +128,7 @@ void MTGPlayerCards::OptimizedHand(Player * who,int amount, int lands, int creat
Player * p = dynamic_cast<Player*>(who);
MTGCardInstance * card = NULL;
MTGGameZone * z = p->game->library;
z->shuffle();
int optimizedland = 0;
int optimizedothercards = 0;