mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-02-13 07:13:45 +00:00
Avoie aoe strategy
This commit is contained in:
@@ -27,4 +27,14 @@ class AllTargetsValue : public PossibleTargetsValue
|
||||
AllTargetsValue(PlayerbotAI* botAI, float range = sPlayerbotAIConfig->sightDistance) : PossibleTargetsValue(botAI, "all targets", range, true) { }
|
||||
};
|
||||
|
||||
class PossibleTriggersValue : public NearestUnitsValue
|
||||
{
|
||||
public:
|
||||
PossibleTriggersValue(PlayerbotAI* botAI, std::string const name = "possible targets", float range = sPlayerbotAIConfig->sightDistance, bool ignoreLos = true):
|
||||
NearestUnitsValue(botAI, name, range, ignoreLos) { }
|
||||
|
||||
protected:
|
||||
void FindUnits(std::list<Unit*>& targets) override;
|
||||
bool AcceptUnit(Unit* unit) override;
|
||||
};
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user