diff --git a/src/strategy/triggers/HealthTriggers.h b/src/strategy/triggers/HealthTriggers.h index 671ff8ec..444cd270 100644 --- a/src/strategy/triggers/HealthTriggers.h +++ b/src/strategy/triggers/HealthTriggers.h @@ -136,7 +136,7 @@ class AoeInGroupTrigger : public Trigger { public: AoeInGroupTrigger(PlayerbotAI* ai, std::string name, std::string type, float ratio) : Trigger(ai, name), ratio(ratio), type(type) {} - virtual bool IsActive(); + bool IsActive() override; protected: float ratio; std::string type; diff --git a/src/strategy/values/AoeHealValues.cpp b/src/strategy/values/AoeHealValues.cpp index 03e34944..9fc1d242 100644 --- a/src/strategy/values/AoeHealValues.cpp +++ b/src/strategy/values/AoeHealValues.cpp @@ -3,6 +3,7 @@ */ #include "AoeHealValues.h" +#include "PlayerbotAIConfig.h" #include "Playerbots.h" uint8 AoeHealValue::Calculate() @@ -18,6 +19,8 @@ uint8 AoeHealValue::Calculate() range = sPlayerbotAIConfig->mediumHealth; else if (qualifier == "critical") range = sPlayerbotAIConfig->criticalHealth; + else if (qualifier == "almost full") + range = sPlayerbotAIConfig->almostFullHealth; uint8 count = 0; Group::MemberSlotList const& groupSlot = group->GetMemberSlots();