diff --git a/src/strategy/actions/ChooseTravelTargetAction.cpp b/src/strategy/actions/ChooseTravelTargetAction.cpp index f6b37494..614a8b73 100644 --- a/src/strategy/actions/ChooseTravelTargetAction.cpp +++ b/src/strategy/actions/ChooseTravelTargetAction.cpp @@ -46,19 +46,19 @@ void ChooseTravelTargetAction::getNewTarget(TravelTarget* newTarget, TravelTarge foundTarget = SetNpcFlagTarget(newTarget, { UNIT_NPC_FLAG_BANKER,UNIT_NPC_FLAG_BATTLEMASTER,UNIT_NPC_FLAG_AUCTIONEER }); //Grind for money - if (!foundTarget && AI_VALUE(bool, "should get money")) + if (!foundTarget && AI_VALUE(bool, "should get money")) { if (urand(1, 100) > 66) { foundTarget = SetQuestTarget(newTarget, true); //Turn in quests for money. if (!foundTarget) foundTarget = SetQuestTarget(newTarget); //Do low level quests - } - else if (urand(1, 100) > 50) + } else if (urand(1, 100) > 50) { foundTarget = SetGrindTarget(newTarget); //Go grind mobs for money - else + } else { foundTarget = SetNewQuestTarget(newTarget); //Find a low level quest to do - + } + } //Continue if (!foundTarget && urand(1, 100) > 10) //90% chance diff --git a/src/strategy/actions/LootRollAction.cpp b/src/strategy/actions/LootRollAction.cpp index 9f5db411..5b4835b4 100644 --- a/src/strategy/actions/LootRollAction.cpp +++ b/src/strategy/actions/LootRollAction.cpp @@ -147,6 +147,8 @@ RollVote LootRollAction::CalculateRollVote(ItemTemplate const* proto) case ITEM_USAGE_VENDOR: needVote = GREED; break; + default: + break; } return StoreLootAction::IsLootAllowed(proto->ItemId, GET_PLAYERBOT_AI(bot)) ? needVote : PASS;