mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
@@ -51,7 +51,7 @@ bool AcceptQuestAction::Execute(Event event)
|
|||||||
guid = unit->GetGUID().GetRawValue();
|
guid = unit->GetGUID().GetRawValue();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (unit && text == "*" && sqrt(bot->GetDistance(unit)) <= INTERACTION_DISTANCE)
|
if (unit && text == "*" && bot->GetDistance(unit) <= INTERACTION_DISTANCE)
|
||||||
hasAccept |= QuestAction::ProcessQuests(unit);
|
hasAccept |= QuestAction::ProcessQuests(unit);
|
||||||
}
|
}
|
||||||
GuidVector gos = AI_VALUE(GuidVector, "nearest game objects no los");
|
GuidVector gos = AI_VALUE(GuidVector, "nearest game objects no los");
|
||||||
@@ -63,7 +63,7 @@ bool AcceptQuestAction::Execute(Event event)
|
|||||||
guid = go->GetGUID().GetRawValue();
|
guid = go->GetGUID().GetRawValue();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (go && text == "*" && sqrt(bot->GetDistance(go)) <= INTERACTION_DISTANCE)
|
if (go && text == "*" && bot->GetDistance(go) <= INTERACTION_DISTANCE)
|
||||||
hasAccept |= QuestAction::ProcessQuests(go);
|
hasAccept |= QuestAction::ProcessQuests(go);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user