Fix/rewrite Shaman weapon buff checking (incl. dual wield support)

Replace the self-weapon shaman imbues with buff checking similar to rogue poisons. Includes support for buffing offhand for enhancement DW shamans.
This commit is contained in:
Bobblybook
2024-07-14 14:09:55 +10:00
parent 84abdcc81f
commit a1fe7e5d24
7 changed files with 48 additions and 9 deletions

View File

@@ -11,6 +11,7 @@
class PlayerbotAI;
/*
class ShamanWeaponTrigger : public BuffTrigger
{
public:
@@ -21,6 +22,21 @@ class ShamanWeaponTrigger : public BuffTrigger
private:
static std::vector<std::string> spells;
};
*/
class MainHandWeaponNoImbueTrigger : public BuffTrigger
{
public:
MainHandWeaponNoImbueTrigger(PlayerbotAI* ai) : BuffTrigger(ai, "main hand", 1) {}
virtual bool IsActive();
};
class OffHandWeaponNoImbueTrigger : public BuffTrigger
{
public:
OffHandWeaponNoImbueTrigger(PlayerbotAI* ai) : BuffTrigger(ai, "off hand", 1) {}
virtual bool IsActive();
};
class TotemTrigger : public Trigger
{