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
+4
View File
@@ -3203,6 +3203,10 @@ void Mob::SetTarget(Mob *mob)
if (this->CastToClient()->admin > 200) {
this->DisplayInfo(mob);
}
#ifdef BOTS
CastToClient()->SetBotPrecombat(false); // Any change in target will nullify this flag (target == mob checked above)
#endif
}
if (IsPet() && GetOwner() && GetOwner()->IsClient()) {