Unholy DK

This commit is contained in:
Yunfan Li
2024-04-10 19:10:47 +08:00
parent d01953d2e0
commit 9eb9fd3a7d
4 changed files with 31 additions and 10 deletions

View File

@@ -37,4 +37,12 @@ bool HighBloodRuneTrigger::IsActive() {
bool DesolationTrigger::IsActive() {
return bot->HasAura(66817) && !botAI->HasAura("desolation", GetTarget(), false, true, -1, true);
}
bool DeathAndDecayCooldownTrigger::IsActive() {
uint32 spellId = AI_VALUE2(uint32, "spell id", name);
if (!spellId)
return true;
return bot->HasSpellCooldown(spellId);
}