mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-02-17 00:54:35 +00:00
debuff on melee attackers
This commit is contained in:
@@ -14,10 +14,17 @@ class Unit;
|
||||
class AttackerWithoutAuraTargetValue : public UnitCalculatedValue, public Qualified
|
||||
{
|
||||
public:
|
||||
AttackerWithoutAuraTargetValue(PlayerbotAI* botAI) : UnitCalculatedValue(botAI, "attacker without aura") { }
|
||||
AttackerWithoutAuraTargetValue(PlayerbotAI* botAI, std::string range = "spell") : UnitCalculatedValue(botAI, "attacker without aura"), range(range) { }
|
||||
|
||||
protected:
|
||||
Unit* Calculate() override;
|
||||
std::string range;
|
||||
};
|
||||
|
||||
class MeleeAttackerWithoutAuraTargetValue : public AttackerWithoutAuraTargetValue
|
||||
{
|
||||
public:
|
||||
MeleeAttackerWithoutAuraTargetValue(PlayerbotAI* botAI) : AttackerWithoutAuraTargetValue(botAI, "melee") {}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user