diff --git a/src/strategy/warlock/WarlockTriggers.cpp b/src/strategy/warlock/WarlockTriggers.cpp index 8fa44758..1109ead5 100644 --- a/src/strategy/warlock/WarlockTriggers.cpp +++ b/src/strategy/warlock/WarlockTriggers.cpp @@ -42,3 +42,8 @@ bool UnstableAfflictionOnAttackerTrigger::IsActive() // !botAI->HasAura("unstable affliction", GetTarget(), false, true); } +bool DecimationTrigger::IsActive() +{ + Aura *aura = botAI->GetAura(getName(), GetTarget(), false, true); + return aura->GetDuration() > 3000; +} \ No newline at end of file diff --git a/src/strategy/warlock/WarlockTriggers.h b/src/strategy/warlock/WarlockTriggers.h index cdefd8c0..8578e43a 100644 --- a/src/strategy/warlock/WarlockTriggers.h +++ b/src/strategy/warlock/WarlockTriggers.h @@ -142,6 +142,7 @@ class DecimationTrigger : public HasAuraTrigger { public: DecimationTrigger(PlayerbotAI* ai) : HasAuraTrigger(ai, "decimation") {} + bool IsActive() override; }; class MoltenCoreTrigger : public HasAuraTrigger