mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-21 02:20:00 +01:00
optimize performance by increase cure check interval
This commit is contained in:
parent
6ba6bc3615
commit
74293912ec
@ -13,7 +13,7 @@ class Unit;
|
|||||||
class NeedCureTrigger : public SpellTrigger
|
class NeedCureTrigger : public SpellTrigger
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
NeedCureTrigger(PlayerbotAI* botAI, std::string const spell, uint32 dispelType) : SpellTrigger(botAI, spell, 1), dispelType(dispelType) { }
|
NeedCureTrigger(PlayerbotAI* botAI, std::string const spell, uint32 dispelType) : SpellTrigger(botAI, spell, 2), dispelType(dispelType) { }
|
||||||
|
|
||||||
std::string const GetTargetName() override { return "self target"; }
|
std::string const GetTargetName() override { return "self target"; }
|
||||||
bool IsActive() override;
|
bool IsActive() override;
|
||||||
|
|||||||
@ -14,7 +14,7 @@ class Unit;
|
|||||||
class PartyMemberToDispel : public PartyMemberValue, public Qualified
|
class PartyMemberToDispel : public PartyMemberValue, public Qualified
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PartyMemberToDispel(PlayerbotAI* botAI, std::string const name = "party member to dispel") : PartyMemberValue(botAI, name), Qualified() { }
|
PartyMemberToDispel(PlayerbotAI* botAI, std::string const name = "party member to dispel") : PartyMemberValue(botAI, name, 2), Qualified() { }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Unit* Calculate() override;
|
Unit* Calculate() override;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user