mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
minor modification
This commit is contained in:
@@ -492,7 +492,7 @@ AiPlayerbot.LootDelay = 1000
|
||||
|
||||
# Distances
|
||||
AiPlayerbot.FarDistance = 20.0
|
||||
AiPlayerbot.SightDistance = 100.0
|
||||
AiPlayerbot.SightDistance = 75.0
|
||||
AiPlayerbot.SpellDistance = 28.5
|
||||
AiPlayerbot.ShootDistance = 5.0
|
||||
AiPlayerbot.ReactDistance = 150.0
|
||||
|
||||
@@ -1255,7 +1255,7 @@ void RandomPlayerbotMgr::Randomize(Player* bot)
|
||||
if (bot->InBattleground())
|
||||
return;
|
||||
|
||||
if (bot->getLevel() < 2 || (bot->getLevel() < 56 && bot->getClass() == CLASS_DEATH_KNIGHT)) {
|
||||
if (bot->getLevel() < 3 || (bot->getLevel() < 56 && bot->getClass() == CLASS_DEATH_KNIGHT)) {
|
||||
RandomizeFirst(bot);
|
||||
}
|
||||
else if (bot->getLevel() < sPlayerbotAIConfig->randomBotMaxLevel || !sPlayerbotAIConfig->downgradeMaxLevelBot) {
|
||||
|
||||
@@ -68,7 +68,7 @@ class TriggerContext : public NamedObjectContext<Trigger>
|
||||
creators["not dps target active"] = &TriggerContext::not_dps_target_active;
|
||||
creators["not dps aoe target active"] = &TriggerContext::not_dps_aoe_target_active;
|
||||
creators["has nearest adds"] = &TriggerContext::has_nearest_adds;
|
||||
creators["enemy player inear"] = &TriggerContext::enemy_player_near;
|
||||
creators["enemy player near"] = &TriggerContext::enemy_player_near;
|
||||
|
||||
creators["tank assist"] = &TriggerContext::TankAssist;
|
||||
creators["lose aggro"] = &TriggerContext::LoseAggro;
|
||||
|
||||
@@ -16,7 +16,7 @@ class Unit;
|
||||
class AttackersValue : public ObjectGuidListCalculatedValue
|
||||
{
|
||||
public:
|
||||
AttackersValue(PlayerbotAI* botAI) : ObjectGuidListCalculatedValue(botAI, "attackers", 2 * 1000) { }
|
||||
AttackersValue(PlayerbotAI* botAI) : ObjectGuidListCalculatedValue(botAI, "attackers", 1 * 1000) { }
|
||||
|
||||
GuidVector Calculate();
|
||||
static bool IsPossibleTarget(Unit* attacker, Player* bot, float range = sPlayerbotAIConfig->sightDistance);
|
||||
|
||||
@@ -69,7 +69,7 @@ Unit* GrindTargetValue::FindTargetForGrinding(uint32 assistCount)
|
||||
continue;
|
||||
}
|
||||
|
||||
if (abs(bot->GetPositionZ() - unit->GetPositionZ()) > sPlayerbotAIConfig->spellDistance)
|
||||
if (abs(bot->GetPositionZ() - unit->GetPositionZ()) > INTERACTION_DISTANCE)
|
||||
continue;
|
||||
|
||||
if (!bot->InBattleground() && GetTargetingPlayerCount(unit) > assistCount)
|
||||
|
||||
Reference in New Issue
Block a user