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:
|
public:
|
||||||
AoeInGroupTrigger(PlayerbotAI* ai, std::string name, std::string type, float ratio) :
|
AoeInGroupTrigger(PlayerbotAI* ai, std::string name, std::string type, float ratio) :
|
||||||
Trigger(ai, name), ratio(ratio), type(type) {}
|
Trigger(ai, name), ratio(ratio), type(type) {}
|
||||||
virtual bool IsActive();
|
bool IsActive() override;
|
||||||
protected:
|
protected:
|
||||||
float ratio;
|
float ratio;
|
||||||
std::string type;
|
std::string type;
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "AoeHealValues.h"
|
#include "AoeHealValues.h"
|
||||||
|
#include "PlayerbotAIConfig.h"
|
||||||
#include "Playerbots.h"
|
#include "Playerbots.h"
|
||||||
|
|
||||||
uint8 AoeHealValue::Calculate()
|
uint8 AoeHealValue::Calculate()
|
||||||
@@ -18,6 +19,8 @@ uint8 AoeHealValue::Calculate()
|
|||||||
range = sPlayerbotAIConfig->mediumHealth;
|
range = sPlayerbotAIConfig->mediumHealth;
|
||||||
else if (qualifier == "critical")
|
else if (qualifier == "critical")
|
||||||
range = sPlayerbotAIConfig->criticalHealth;
|
range = sPlayerbotAIConfig->criticalHealth;
|
||||||
|
else if (qualifier == "almost full")
|
||||||
|
range = sPlayerbotAIConfig->almostFullHealth;
|
||||||
|
|
||||||
uint8 count = 0;
|
uint8 count = 0;
|
||||||
Group::MemberSlotList const& groupSlot = group->GetMemberSlots();
|
Group::MemberSlotList const& groupSlot = group->GetMemberSlots();
|
||||||
|
|||||||
Reference in New Issue
Block a user