mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-19 13:28:25 +00:00
Implement ^discipline
This commit is contained in:
+21
-5
@@ -649,6 +649,10 @@ bool Bot::AI_PursueCastCheck() {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (AIBot_spells_by_type[currentCast.spellType].empty()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
result = AttemptAICastSpell(currentCast.spellType, nullptr);
|
||||
|
||||
if (!result && IsBotSpellTypeBeneficial(currentCast.spellType)) {
|
||||
@@ -721,6 +725,10 @@ bool Bot::AI_IdleCastCheck() {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (AIBot_spells_by_type[currentCast.spellType].empty()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
result = AttemptAICastSpell(currentCast.spellType, nullptr);
|
||||
|
||||
if (result) {
|
||||
@@ -778,6 +786,10 @@ bool Bot::AI_EngagedCastCheck() {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (AIBot_spells_by_type[currentCast.spellType].empty()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
result = AttemptAICastSpell(currentCast.spellType, nullptr);
|
||||
|
||||
if (!result && IsBotSpellTypeBeneficial(currentCast.spellType)) {
|
||||
@@ -1041,11 +1053,15 @@ std::vector<BotSpell_wPriority> Bot::GetPrioritizedBotSpellsBySpellType(Bot* bot
|
||||
}
|
||||
|
||||
if (
|
||||
!RuleB(Bots, EnableBotTGB) &&
|
||||
IsGroupSpell(botSpellList[i].spellid) &&
|
||||
!IsTGBCompatibleSpell(botSpellList[i].spellid) &&
|
||||
!botCaster->IsInGroupOrRaid(tar, true)
|
||||
) {
|
||||
!botCaster->IsInGroupOrRaid(tar, true) &&
|
||||
(
|
||||
!RuleB(Bots, EnableBotTGB) ||
|
||||
(
|
||||
IsGroupSpell(botSpellList[i].spellid) &&
|
||||
!IsTGBCompatibleSpell(botSpellList[i].spellid)
|
||||
)
|
||||
)
|
||||
) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user