diff --git a/src/strategy/values/CurrentTargetValue.cpp b/src/strategy/values/CurrentTargetValue.cpp index 5b271f03..66e33a2b 100644 --- a/src/strategy/values/CurrentTargetValue.cpp +++ b/src/strategy/values/CurrentTargetValue.cpp @@ -11,8 +11,8 @@ Unit* CurrentTargetValue::Get() return nullptr; Unit* unit = ObjectAccessor::GetUnit(*bot, selection); - if (unit && !bot->IsWithinLOSInMap(unit)) - return nullptr; + // if (unit && !bot->IsWithinLOSInMap(unit)) + // return nullptr; return unit; } diff --git a/src/strategy/values/EnemyPlayerValue.h b/src/strategy/values/EnemyPlayerValue.h index 2dfcb9f3..bba9a0a4 100644 --- a/src/strategy/values/EnemyPlayerValue.h +++ b/src/strategy/values/EnemyPlayerValue.h @@ -24,7 +24,7 @@ class NearestEnemyPlayersValue : public PossibleTargetsValue class EnemyPlayerValue : public UnitCalculatedValue { public: - EnemyPlayerValue(PlayerbotAI* botAI, std::string const name = "enemy player") : UnitCalculatedValue(botAI, name, 2 * 1000) { } + EnemyPlayerValue(PlayerbotAI* botAI, std::string const name = "enemy player") : UnitCalculatedValue(botAI, name, 5 * 1000) { } Unit* Calculate() override; diff --git a/src/strategy/values/SnareTargetValue.h b/src/strategy/values/SnareTargetValue.h index d8ea93bc..45577781 100644 --- a/src/strategy/values/SnareTargetValue.h +++ b/src/strategy/values/SnareTargetValue.h @@ -14,7 +14,7 @@ class Unit; class SnareTargetValue : public UnitCalculatedValue, public Qualified { public: - SnareTargetValue(PlayerbotAI* botAI) : UnitCalculatedValue(botAI, "snare target") { } + SnareTargetValue(PlayerbotAI* botAI) : UnitCalculatedValue(botAI, "snare target", 1 * 1000) { } protected: Unit* Calculate() override; diff --git a/src/strategy/values/StatsValues.h b/src/strategy/values/StatsValues.h index 411f9fb8..33e80fd7 100644 --- a/src/strategy/values/StatsValues.h +++ b/src/strategy/values/StatsValues.h @@ -75,7 +75,7 @@ class ManaValue : public Uint8CalculatedValue, public Qualified class HasManaValue : public BoolCalculatedValue, public Qualified { public: - HasManaValue(PlayerbotAI* botAI, std::string const name = "has mana") : BoolCalculatedValue(botAI, name) { } + HasManaValue(PlayerbotAI* botAI, std::string const name = "has mana") : BoolCalculatedValue(botAI, name, 2 * 1000) { } Unit* GetTarget(); bool Calculate() override;