Added bot command 'precombat' to manually set pre-combat mode rather than the 'assumption' process used before; Added rule Bot:AllowOwnerOptionAltCombat to allow admins control over its use

This commit is contained in:
Uleat
2019-10-13 22:24:06 -04:00
parent 7edfdbd9db
commit 99ee4e04d9
8 changed files with 78 additions and 25 deletions
+2 -2
View File
@@ -2465,7 +2465,7 @@ void Bot::AI_Process()
//#pragma endregion
bool bo_alt_combat = bot_owner->GetBotOption(Client::booAltCombat);
bool bo_alt_combat = (RuleB(Bots, AllowOwnerOptionAltCombat) && bot_owner->GetBotOption(Client::booAltCombat));
//#pragma region ATTACK FLAG
@@ -3402,7 +3402,7 @@ void Bot::AI_Process()
// 'class Client' doesn't make use of hate_list...
if (bot_owner->GetAggroCount() && bot_owner->GetBotOption(Client::booAutoDefend)) {
if (RuleB(Bots, AllowOwnerAutoDefend)) {
if (RuleB(Bots, AllowOwnerOptionAutoDefend)) {
if (NOT_HOLDING && NOT_PASSIVE) {