mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-31 01:13:48 +00:00
[Warnings] Fix.
This commit is contained in:
@@ -178,7 +178,7 @@ void PlayerbotFactory::Randomize(bool incremental)
|
|||||||
// {
|
// {
|
||||||
// return;
|
// 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"));
|
// LOG_DEBUG("playerbots", "Preparing to {} randomize...", (incremental ? "incremental" : "full"));
|
||||||
Prepare();
|
Prepare();
|
||||||
LOG_DEBUG("playerbots", "Resetting player...");
|
LOG_DEBUG("playerbots", "Resetting player...");
|
||||||
|
|||||||
@@ -13,11 +13,12 @@ bool SetHomeAction::Execute(Event event)
|
|||||||
ObjectGuid selection = bot->GetTarget();
|
ObjectGuid selection = bot->GetTarget();
|
||||||
bool isRpgAction = AI_VALUE(GuidPosition, "rpg target") == selection;
|
bool isRpgAction = AI_VALUE(GuidPosition, "rpg target") == selection;
|
||||||
|
|
||||||
if (!isRpgAction)
|
if (!isRpgAction) {
|
||||||
if (master)
|
if (master)
|
||||||
selection = master->GetTarget();
|
selection = master->GetTarget();
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (Unit* unit = botAI->GetUnit(selection))
|
if (Unit* unit = botAI->GetUnit(selection))
|
||||||
if (unit->HasFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_INNKEEPER))
|
if (unit->HasFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_INNKEEPER))
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ bool TravelAction::Execute(Event event)
|
|||||||
if (!newTarget->IsAlive())
|
if (!newTarget->IsAlive())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!newTarget->GetEntry() != target->getDestination()->getEntry())
|
if (newTarget->GetEntry() == target->getDestination()->getEntry())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (newTarget->IsInCombat())
|
if (newTarget->IsInCombat())
|
||||||
|
|||||||
Reference in New Issue
Block a user