Skip to content

Commit

Permalink
NPCBots: Druid: Remove unnecessary shapeshift form removal for balanc…
Browse files Browse the repository at this point in the history
…e actions
  • Loading branch information
trickerer committed Oct 23, 2024
1 parent e5b2d19 commit 35c2d34
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/server/game/AI/NpcBots/bot_druid_ai.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 35c2d34

Please sign in to comment.