Skip to content

Commit

Permalink
Battleground: Add missing "BgObjective" variable for BATTLEGROUND_EY …
Browse files Browse the repository at this point in the history
…and BATTLEGROUND_IC (accidentaly removed during AV cleanup) (#138)
  • Loading branch information
Exxenoz authored Feb 2, 2025
1 parent 7d7b9c3 commit 2c2e477
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions playerbot/strategy/actions/BattleGroundTactics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3280,6 +3280,8 @@ bool BGTactics::selectObjective(bool reset)
rootTeamIndex = TEAM_INDEX_ALLIANCE;
}

WorldObject* BgObjective = nullptr;

//Get BgObjective if not set
if (!bot->HasAura(EY_SPELL_NETHERSTORM_FLAG))
{
Expand Down Expand Up @@ -3438,6 +3440,7 @@ bool BGTactics::selectObjective(bool reset)
#ifdef MANGOSBOT_TWO
case BATTLEGROUND_IC:
{
WorldObject* BgObjective = nullptr;
uint32 currentObjective = BG_IC_MAX_OBJECTIVES;
uint32 role = context->GetValue<uint32>("bg role")->Get();
bool inVehicle = ai->IsInVehicle();
Expand Down

0 comments on commit 2c2e477

Please sign in to comment.