mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Improve inactive grind status
This commit is contained in:
parent
9d34a58435
commit
30437bd28f
@ -48,10 +48,12 @@ bool AttackAnythingAction::isUseful()
|
||||
if (!target)
|
||||
return false;
|
||||
|
||||
bool rpgGoStatus = botAI->rpgInfo.status == NewRpgStatus::GO_GRIND ||
|
||||
bool inactiveGrindStatus = botAI->rpgInfo.status == NewRpgStatus::GO_GRIND ||
|
||||
botAI->rpgInfo.status == NewRpgStatus::NEAR_NPC ||
|
||||
botAI->rpgInfo.status == NewRpgStatus::REST ||
|
||||
botAI->rpgInfo.status == NewRpgStatus::GO_INNKEEPER;
|
||||
|
||||
if (rpgGoStatus && bot->GetDistance(target) > 25.0f)
|
||||
if (inactiveGrindStatus && bot->GetDistance(target) > 25.0f)
|
||||
return false;
|
||||
|
||||
std::string const name = std::string(target->GetName());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user