mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-02-14 15:53:45 +00:00
razuvious strategy
This commit is contained in:
@@ -22,4 +22,16 @@ class ThreatValue : public Uint8CalculatedValue, public Qualified
|
||||
uint8 Calculate(Unit* target);
|
||||
};
|
||||
|
||||
class NeglectThreatResetValue : public ManualSetValue<bool>
|
||||
{
|
||||
public:
|
||||
NeglectThreatResetValue(PlayerbotAI* ai, bool defaultValue = false, std::string name = "neglect threat") :
|
||||
ManualSetValue<bool>(ai, defaultValue, name) {}
|
||||
virtual bool Get() {
|
||||
bool ret = value;
|
||||
Reset();
|
||||
return ret;
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user