add passive stance checks to commands and loading/saving. shouldn't be `

This commit is contained in:
nytmyr
2024-11-09 22:00:20 -06:00
parent 938c72619c
commit 0d970844d3
25 changed files with 132 additions and 12 deletions
+18 -1
View File
@@ -9844,7 +9844,6 @@ bool Bot::IsMobEngagedByAnyone(Mob* tar) {
if (m->GetTarget() == tar) {
if (
m->IsBot() &&
!m->CastToBot()->GetHoldFlag() &&
m->IsEngaged() &&
(
!m->CastToBot()->IsBotNonSpellFighter() ||
@@ -11432,3 +11431,21 @@ void Bot::ResetBotSpellSettings()
AI_AddBotSpells(GetBotSpellID());
SetBotEnforceSpellSetting(false);
}
bool Bot::BotPassiveCheck() {
if (GetBotStance() == Stance::Passive) {
GetOwner()->Message(
Chat::Yellow,
fmt::format(
"{} says, 'I am currently set to stance {} [#{}]. My settings cannot be modified.'",
GetCleanName(),
Stance::GetName(Stance::Passive),
Stance::Passive
).c_str()
);
return true;
}
return false;
}