mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
fix(triggers): group heal occation
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user