Compare commits

..

No commits in common. "179c34e3a9ff48566e4da81e8fa59985f1f0b3b9" and "bc737ecc68dfe7b46694f18d3a2c682c79536f5e" have entirely different histories.

3 changed files with 5 additions and 6 deletions

View File

@ -492,7 +492,7 @@ AiPlayerbot.AutoGearQualityLimit = 3
AiPlayerbot.AutoGearScoreLimit = 0 AiPlayerbot.AutoGearScoreLimit = 0
# Enable/Disable cheats for bots # Enable/Disable cheats for bots
# "food" (bots eat or drink without using food or drinks from their inventory) # "food" (bots use cheat when eat or drink)
# "gold" (bots have infinite gold) # "gold" (bots have infinite gold)
# "health" (bots have infinite health) # "health" (bots have infinite health)
# "mana" (bots have infinite mana) # "mana" (bots have infinite mana)

View File

@ -299,10 +299,9 @@ bool LootObject::IsLootPossible(Player* bot)
return false; return false;
} }
// Prevent bot from running to chests that are unlootable (e.g. Gunship Armory before completing the event) or on // Prevent bot from running to chests that are unlootable (e.g. Gunship Armory before completing the event)
// respawn time
GameObject* go = botAI->GetGameObject(guid); GameObject* go = botAI->GetGameObject(guid);
if (go && (go->HasFlag(GAMEOBJECT_FLAGS, GO_FLAG_INTERACT_COND | GO_FLAG_NOT_SELECTABLE) || !go->isSpawned())) if (go && go->HasFlag(GAMEOBJECT_FLAGS, GO_FLAG_INTERACT_COND | GO_FLAG_NOT_SELECTABLE))
return false; return false;
if (skillId == SKILL_NONE) if (skillId == SKILL_NONE)
@ -408,4 +407,4 @@ LootObject LootObjectStack::GetNearest(float maxDistance)
} }
return nearest; return nearest;
} }

View File

@ -3244,7 +3244,7 @@ std::vector<uint32> PlayerbotFactory::GetCurrentGemsCount()
void PlayerbotFactory::InitFood() void PlayerbotFactory::InitFood()
{ {
if (botAI && botAI->HasCheat(BotCheatMask::food)) if (!botAI->HasCheat(BotCheatMask::food))
{ {
return; return;
} }