mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-19 03:35:43 +00:00
[Warnings] Fix.
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user