mirror of
https://github.com/EQEmu/Server.git
synced 2026-12-01 20:42:17 +00:00
Add AllowAIMez to allow bot auto mez to be toggled
This commit is contained in:
1 parent
1c8da32f72
commit
2042e95163
2 files changed
+13
No files matched your search
@@ -639,6 +639,10 @@ bool Bot::AI_PursueCastCheck() {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (RuleB(Bots, AllowAIMez) && (currentCast.spellType == BotSpellTypes::AEMez || currentCast.spellType == BotSpellTypes::Mez)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (currentCast.spellType == BotSpellTypes::Resurrect || currentCast.spellType == BotSpellTypes::Charm) { // Unsupported by AI currently.
|
||||
continue;
|
||||
}
|
||||
@@ -698,6 +702,10 @@ bool Bot::AI_IdleCastCheck() {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (RuleB(Bots, AllowAIMez) && (currentCast.spellType == BotSpellTypes::AEMez || currentCast.spellType == BotSpellTypes::Mez)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (currentCast.spellType == BotSpellTypes::Resurrect || currentCast.spellType == BotSpellTypes::Charm) { // Unsupported by AI currently.
|
||||
continue;
|
||||
}
|
||||
@@ -744,6 +752,10 @@ bool Bot::AI_EngagedCastCheck() {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (RuleB(Bots, AllowAIMez) && (currentCast.spellType == BotSpellTypes::AEMez || currentCast.spellType == BotSpellTypes::Mez)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (currentCast.spellType == BotSpellTypes::Resurrect || currentCast.spellType == BotSpellTypes::Charm) { // Unsupported by AI currently.
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user