paladin and attackers value

This commit is contained in:
Yunfan Li
2023-06-03 23:33:39 +08:00
parent e68a22d968
commit 516366a74d
10 changed files with 487 additions and 72 deletions

View File

@@ -4,13 +4,14 @@
#include "PaladinActions.h"
#include "PaladinTriggers.h"
#include "PlayerbotAIConfig.h"
#include "Playerbots.h"
bool SealTrigger::IsActive()
{
Unit* target = GetTarget();
return !botAI->HasAura("seal of justice", target) && !botAI->HasAura("seal of command", target) && !botAI->HasAura("seal of vengeance", target) &&
!botAI->HasAura("seal of righteousness", target) && !botAI->HasAura("seal of light", target) && !botAI->HasAura("seal of wisdom", target) &&
!botAI->HasAura("seal of righteousness", target) && !botAI->HasAura("seal of light", target) && (!botAI->HasAura("seal of wisdom", target) || AI_VALUE2(uint8, "mana", "self target") > 70) &&
AI_VALUE2(bool, "combat", "self target");
}