mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-18 11:15:43 +00:00
Run clang-format
This commit is contained in:
@@ -1,45 +1,51 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU GPL v2 license, you may redistribute it and/or modify it under version 2 of the License, or (at your option), any later version.
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU GPL v2 license, you may redistribute it
|
||||
* and/or modify it under version 2 of the License, or (at your option), any later version.
|
||||
*/
|
||||
|
||||
#include "PriestTriggers.h"
|
||||
|
||||
#include "Playerbots.h"
|
||||
|
||||
bool PowerWordFortitudeOnPartyTrigger::IsActive()
|
||||
{
|
||||
return BuffOnPartyTrigger::IsActive() && !botAI->HasAura("power word : fortitude", GetTarget()) && !botAI->HasAura("prayer of fortitude", GetTarget());
|
||||
return BuffOnPartyTrigger::IsActive() && !botAI->HasAura("power word : fortitude", GetTarget()) &&
|
||||
!botAI->HasAura("prayer of fortitude", GetTarget());
|
||||
}
|
||||
|
||||
bool PowerWordFortitudeTrigger::IsActive()
|
||||
{
|
||||
return BuffTrigger::IsActive() && !botAI->HasAura("power word: fortitude", GetTarget()) && !botAI->HasAura("prayer of fortitude", GetTarget());
|
||||
return BuffTrigger::IsActive() && !botAI->HasAura("power word: fortitude", GetTarget()) &&
|
||||
!botAI->HasAura("prayer of fortitude", GetTarget());
|
||||
}
|
||||
|
||||
bool DivineSpiritOnPartyTrigger::IsActive()
|
||||
{
|
||||
return BuffOnPartyTrigger::IsActive() && !botAI->HasAura("divine spirit", GetTarget()) && !botAI->HasAura("prayer of spirit", GetTarget());
|
||||
return BuffOnPartyTrigger::IsActive() && !botAI->HasAura("divine spirit", GetTarget()) &&
|
||||
!botAI->HasAura("prayer of spirit", GetTarget());
|
||||
}
|
||||
|
||||
bool DivineSpiritTrigger::IsActive()
|
||||
{
|
||||
return BuffTrigger::IsActive() && !botAI->HasAura("divine spirit", GetTarget()) && !botAI->HasAura("prayer of spirit", GetTarget());
|
||||
return BuffTrigger::IsActive() && !botAI->HasAura("divine spirit", GetTarget()) &&
|
||||
!botAI->HasAura("prayer of spirit", GetTarget());
|
||||
}
|
||||
|
||||
bool PrayerOfFortitudeTrigger::IsActive()
|
||||
{
|
||||
return BuffOnPartyTrigger::IsActive() &&
|
||||
!botAI->HasAura("prayer of fortitude", GetTarget()) &&
|
||||
botAI->GetBot()->IsInSameGroupWith((Player*)GetTarget()) &&
|
||||
botAI->GetBuffedCount((Player*)GetTarget(), "prayer of fortitude") < 4 && !botAI->GetBuffedCount((Player*)GetTarget(), "power word: fortitude");
|
||||
return BuffOnPartyTrigger::IsActive() && !botAI->HasAura("prayer of fortitude", GetTarget()) &&
|
||||
botAI->GetBot()->IsInSameGroupWith((Player*)GetTarget()) &&
|
||||
botAI->GetBuffedCount((Player*)GetTarget(), "prayer of fortitude") < 4 &&
|
||||
!botAI->GetBuffedCount((Player*)GetTarget(), "power word: fortitude");
|
||||
}
|
||||
|
||||
bool PrayerOfSpiritTrigger::IsActive()
|
||||
{
|
||||
return BuffOnPartyTrigger::IsActive() &&
|
||||
!botAI->HasAura("prayer of spirit", GetTarget()) &&
|
||||
botAI->GetBot()->IsInSameGroupWith((Player*)GetTarget()) &&
|
||||
//botAI->GetManaPercent() > 50 &&
|
||||
botAI->GetBuffedCount((Player*) GetTarget(), "prayer of spirit") < 4 && !botAI->GetBuffedCount((Player*) GetTarget(), "divine spirit");
|
||||
return BuffOnPartyTrigger::IsActive() && !botAI->HasAura("prayer of spirit", GetTarget()) &&
|
||||
botAI->GetBot()->IsInSameGroupWith((Player*)GetTarget()) &&
|
||||
// botAI->GetManaPercent() > 50 &&
|
||||
botAI->GetBuffedCount((Player*)GetTarget(), "prayer of spirit") < 4 &&
|
||||
!botAI->GetBuffedCount((Player*)GetTarget(), "divine spirit");
|
||||
}
|
||||
|
||||
bool InnerFireTrigger::IsActive()
|
||||
@@ -48,21 +54,17 @@ bool InnerFireTrigger::IsActive()
|
||||
return SpellTrigger::IsActive() && !botAI->HasAura(spell, target);
|
||||
}
|
||||
|
||||
bool ShadowformTrigger::IsActive()
|
||||
{
|
||||
return !botAI->HasAura("shadowform", bot);
|
||||
}
|
||||
bool ShadowformTrigger::IsActive() { return !botAI->HasAura("shadowform", bot); }
|
||||
|
||||
bool ShadowfiendTrigger::IsActive()
|
||||
{
|
||||
return BoostTrigger::IsActive() && !bot->HasSpellCooldown(34433);
|
||||
}
|
||||
bool ShadowfiendTrigger::IsActive() { return BoostTrigger::IsActive() && !bot->HasSpellCooldown(34433); }
|
||||
|
||||
BindingHealTrigger::BindingHealTrigger(PlayerbotAI* botAI) : PartyMemberLowHealthTrigger(botAI, "binding heal", sPlayerbotAIConfig->lowHealth, 0)
|
||||
BindingHealTrigger::BindingHealTrigger(PlayerbotAI* botAI)
|
||||
: PartyMemberLowHealthTrigger(botAI, "binding heal", sPlayerbotAIConfig->lowHealth, 0)
|
||||
{
|
||||
}
|
||||
|
||||
bool BindingHealTrigger::IsActive()
|
||||
{
|
||||
return PartyMemberLowHealthTrigger::IsActive() && AI_VALUE2(uint8, "health", "self target") < sPlayerbotAIConfig->mediumHealth;
|
||||
return PartyMemberLowHealthTrigger::IsActive() &&
|
||||
AI_VALUE2(uint8, "health", "self target") < sPlayerbotAIConfig->mediumHealth;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user