Auto avoid aoe config

This commit is contained in:
Yunfan Li
2024-04-14 13:03:18 +08:00
parent df1b280b14
commit 0499e5da46
10 changed files with 76 additions and 9 deletions

View File

@@ -24,4 +24,17 @@ class NearestGameObjects : public ObjectGuidListCalculatedValue
bool ignoreLos;
};
class NearestTrapWithDamageValue : public ObjectGuidListCalculatedValue
{
public:
NearestTrapWithDamageValue(PlayerbotAI* botAI, float range = sPlayerbotAIConfig->sightDistance) :
ObjectGuidListCalculatedValue(botAI, "nearest trap with damage", 1 * 1000), range(range) { }
protected:
GuidVector Calculate() override;
private:
float range;
};
#endif