Improvement on warlock life tap glyph

This commit is contained in:
Yunfan Li
2025-01-18 23:47:19 +08:00
parent 106b36b498
commit 3523a65ff8
5 changed files with 26 additions and 4 deletions

View File

@@ -5,6 +5,7 @@
#include "WarlockTriggers.h"
#include "GenericTriggers.h"
#include "Playerbots.h"
bool DemonArmorTrigger::IsActive()
@@ -44,4 +45,13 @@ bool DecimationTrigger::IsActive()
{
Aura* aura = botAI->GetAura(getName(), GetTarget(), false, true);
return aura && aura->GetDuration() > 3000;
}
bool LifeTapGlyphBuffTrigger::IsActive()
{
// Check life tap glyph first
if (!botAI->HasAura(63320, bot))
return false;
return BuffTrigger::IsActive();
}