mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
move random for rpg
This commit is contained in:
@@ -1491,7 +1491,7 @@ bool MoveRandomAction::Execute(Event event)
|
||||
|
||||
bool MoveRandomAction::isUseful()
|
||||
{
|
||||
return !botAI->HasRealPlayerMaster();
|
||||
return !AI_VALUE(GuidPosition, "rpg target") && !botAI->HasRealPlayerMaster();
|
||||
}
|
||||
|
||||
bool MoveInsideAction::Execute(Event event)
|
||||
|
||||
@@ -32,7 +32,7 @@ NextAction** RpgStrategy::getDefaultActions()
|
||||
void RpgStrategy::InitTriggers(std::vector<TriggerNode*>& triggers)
|
||||
{
|
||||
triggers.push_back(new TriggerNode("no rpg target", NextAction::array(0, new NextAction("choose rpg target", 5.0f), nullptr)));
|
||||
triggers.push_back(new TriggerNode("no rpg target", NextAction::array(0, new NextAction("move random", 1.10f), NULL)));
|
||||
triggers.push_back(new TriggerNode("often", NextAction::array(0, new NextAction("move random", 1.10f), NULL)));
|
||||
triggers.push_back(new TriggerNode("far from rpg target", NextAction::array(0, new NextAction("move to rpg target", 5.0f), nullptr)));
|
||||
|
||||
//Sub actions
|
||||
|
||||
Reference in New Issue
Block a user