mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-02-17 00:54:35 +00:00
avoid AOE strategy (WIP)
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
|
||||
#include "Object.h"
|
||||
#include "Value.h"
|
||||
#include "AiObjectContext.h"
|
||||
|
||||
class PlayerbotAI;
|
||||
|
||||
@@ -26,4 +27,18 @@ class AoeCountValue : public CalculatedValue<uint8>
|
||||
uint8 Calculate() override;
|
||||
};
|
||||
|
||||
class HasAreaDebuffValue : public BoolCalculatedValue, public Qualified
|
||||
{
|
||||
public:
|
||||
HasAreaDebuffValue(PlayerbotAI* botAI) : BoolCalculatedValue(botAI) {}
|
||||
|
||||
Unit* GetTarget()
|
||||
{
|
||||
AiObjectContext* ctx = AiObject::context;
|
||||
|
||||
return ctx->GetValue<Unit*>(qualifier)->Get();
|
||||
}
|
||||
virtual bool Calculate();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user