mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-22 12:18:27 +00:00
add passive stance checks to commands and loading/saving. shouldn't be `
This commit is contained in:
+18
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user