Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
Fix last merge conflict
  • Loading branch information
onajafi committed Feb 17, 2020
2 parents b267b3b + 7806490 commit 3b99a6b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/src/AI/AI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ void AI::pick(World *world) {
int cols = map->getColNum();

vector<const BaseUnit*> allBaseUnits = world->getAllBaseUnits();
vector<const BaseUnit*> myDeck;
vector<const BaseUnit*> myHand;

// choosing all flying units
for (const BaseUnit *baseUnit : allBaseUnits) {
if (baseUnit->isFlying())
myDeck.push_back(baseUnit);
myHand.push_back(baseUnit);
}

// picking the chosen deck - rest of the deck will automatically be filled with random baseUnits
world->chooseHand(myDeck);
// picking the chosen hand - rest of the hand will automatically be filled with random baseUnits
world->chooseHand(myHand);

//other preprocess
pathIDForMyUnits = world->getFriend()->getPathsFromPlayer()[0]->getId();
Expand Down

0 comments on commit 3b99a6b

Please sign in to comment.