From 35c2d34dc6ba7829524fa61a681d1df381968f42 Mon Sep 17 00:00:00 2001 From: trickerer Date: Wed, 23 Oct 2024 17:07:01 +0700 Subject: [PATCH] NPCBots: Druid: Remove unnecessary shapeshift form removal for balance actions --- src/server/game/AI/NpcBots/bot_druid_ai.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/server/game/AI/NpcBots/bot_druid_ai.cpp b/src/server/game/AI/NpcBots/bot_druid_ai.cpp index 2bab904a127fa..295d7a2dc3025 100644 --- a/src/server/game/AI/NpcBots/bot_druid_ai.cpp +++ b/src/server/game/AI/NpcBots/bot_druid_ai.cpp @@ -705,8 +705,7 @@ class druid_bot : public CreatureScript else if (HasRole(BOT_ROLE_DPS)) { //pure dps goes moonkin - if (_form == DRUID_MOONKIN_FORM || - ((!GetSpell(MOONKIN_FORM_1) || HasRole(BOT_ROLE_HEAL)) && (_form == BOT_STANCE_NONE || removeShapeshiftForm())) || + if (_form == DRUID_MOONKIN_FORM || HasRole(BOT_ROLE_HEAL) || !GetSpell(MOONKIN_FORM_1) || (!HasRole(BOT_ROLE_HEAL) && IsSpellReady(MOONKIN_FORM_1, diff, false) && doCast(me, GetSpell(MOONKIN_FORM_1)))) doBalanceActions(mytar, diff); } @@ -1073,10 +1072,6 @@ class druid_bot : public CreatureScript void doBalanceActions(Unit* mytar, uint32 diff) { - //debug - if (me->GetPowerType() != POWER_MANA) - return; - MoveBehind(mytar); if (HasRole(BOT_ROLE_HEAL) && GetManaPCT(me) < 25)