Skip to content

Fix arena_team_member type - #71

Merged
Helias merged 2 commits into
azerothcore:masterfrom
EricksOliveira:bugtype
Jan 18, 2026
Merged

Fix arena_team_member type#71
Helias merged 2 commits into
azerothcore:masterfrom
EricksOliveira:bugtype

Conversation

@EricksOliveira

Copy link
Copy Markdown

Changes Proposed:

Issues Addressed:

SOURCE:

Tests Performed:

How to Test the Changes:

Comment thread src/npc_arena1v1.cpp Outdated
{
CharacterDatabase.Execute("DELETE FROM `arena_team` WHERE `captainGuid`={} AND `type`=1", player->GetGUID().GetCounter());
CharacterDatabase.Execute("DELETE FROM `arena_team_member` WHERE `guid`={} AND `type`=1", player->GetGUID().GetCounter());
CharacterDatabase.Execute("DELETE FROM `arena_team_member` WHERE `guid`={}", player->GetGUID().GetCounter());

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this would delete all the arena_team of a player, we should delete only the arena team related to 1v1

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

luckily this code never runs, otherwise it would delete all the arena teams from the Player, not only the arena team of 1v1.

The arena team is deleted by

sArenaTeamMgr->RemoveArenaTeam(player->GetArenaTeamId(ARENA_SLOT_1V1));

so I am moving this piece of code inside this function, so we can see where everything is deleted properly.

I am doing more tests

@Helias
Helias merged commit 78db7ac into azerothcore:master Jan 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: table arena_team_member does not have column 'type'

2 participants