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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user