From b6fb8daae8b6e91675edafece5772e597cded4fb Mon Sep 17 00:00:00 2001 From: Alex King <89047260+Kinglykrab@users.noreply.github.com> Date: Mon, 22 Jul 2024 21:43:18 -0400 Subject: [PATCH] [Bug Fix] Fix Bot::SetBotStance (#4426) --- zone/bot.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/bot.h b/zone/bot.h index 3b94eac82..68b027f05 100644 --- a/zone/bot.h +++ b/zone/bot.h @@ -605,7 +605,7 @@ public: void SetPetChooser(bool p) { _petChooser = p; } void SetBotOwner(Mob* botOwner) { this->_botOwner = botOwner; } void SetRangerAutoWeaponSelect(bool enable) { GetClass() == Class::Ranger ? _rangerAutoWeaponSelect = enable : _rangerAutoWeaponSelect = false; } - void SetBotStance(uint8 stance_id) { _botStance = Stance::IsValid(stance_id) ? Stance::Passive : stance_id; } + void SetBotStance(uint8 stance_id) { _botStance = Stance::IsValid(stance_id) ? stance_id : Stance::Passive; } void SetBotCasterRange(uint32 bot_caster_range) { m_bot_caster_range = bot_caster_range; } uint32 GetSpellRecastTimer(uint16 spell_id = 0); bool CheckSpellRecastTimer(uint16 spell_id = 0);