Skip to content

Commit 8be7d80

Browse files
Nyeriahclaude
andcommitted
fix(Core): pass Battleground arg to CanJoinToBattleground
Player::CanJoinToBattleground now requires a Battleground const* argument. Pass the resolved bg template to fix the build. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent fd6077d commit 8be7d80

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/LowLevelRBG.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class low_level_rbg_commandscript : public CommandScript
132132
{
133133
err = ERR_LFG_CANT_USE_BATTLEGROUND;
134134
}
135-
else if (!player->CanJoinToBattleground()) // has deserter debuff
135+
else if (!player->CanJoinToBattleground(bgt)) // has deserter debuff
136136
{
137137
err = ERR_GROUP_JOIN_BATTLEGROUND_DESERTERS;
138138
}

0 commit comments

Comments
 (0)