diff --git a/src/PlayerbotFactory.cpp b/src/PlayerbotFactory.cpp index b5fa94a0..1512046d 100644 --- a/src/PlayerbotFactory.cpp +++ b/src/PlayerbotFactory.cpp @@ -178,7 +178,7 @@ void PlayerbotFactory::Randomize(bool incremental) // { // return; // } - LOG_INFO("playerbots", "{} randomizing {} (level {} class = {})...", (incremental ? "Incremental" : "Full"), bot->GetName().c_str(), bot->GetLevel(), bot->getClass()); + LOG_INFO("playerbots", "{} randomizing {} (level {} class = {})...", (incremental ? "Incremental" : "Full"), bot->GetName().c_str(), level, bot->getClass()); // LOG_DEBUG("playerbots", "Preparing to {} randomize...", (incremental ? "incremental" : "full")); Prepare(); LOG_DEBUG("playerbots", "Resetting player..."); diff --git a/src/strategy/actions/SetHomeAction.cpp b/src/strategy/actions/SetHomeAction.cpp index 6bf39c60..6bcb417a 100644 --- a/src/strategy/actions/SetHomeAction.cpp +++ b/src/strategy/actions/SetHomeAction.cpp @@ -13,11 +13,12 @@ bool SetHomeAction::Execute(Event event) ObjectGuid selection = bot->GetTarget(); bool isRpgAction = AI_VALUE(GuidPosition, "rpg target") == selection; - if (!isRpgAction) + if (!isRpgAction) { if (master) selection = master->GetTarget(); else return false; + } if (Unit* unit = botAI->GetUnit(selection)) if (unit->HasFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_INNKEEPER)) diff --git a/src/strategy/actions/TravelAction.cpp b/src/strategy/actions/TravelAction.cpp index 3eb1211a..8e3e4524 100644 --- a/src/strategy/actions/TravelAction.cpp +++ b/src/strategy/actions/TravelAction.cpp @@ -35,7 +35,7 @@ bool TravelAction::Execute(Event event) if (!newTarget->IsAlive()) continue; - if (!newTarget->GetEntry() != target->getDestination()->getEntry()) + if (newTarget->GetEntry() == target->getDestination()->getEntry()) continue; if (newTarget->IsInCombat())