[DiscordArchive] Is there a way to check if a player is inside arena, specifically 3v3 arena? Would that be possible
[DiscordArchive] Is there a way to check if a player is inside arena, specifically 3v3 arena? Would that be possible
Archived author: Linguster • Posted: 2022-07-22T23:36:17.746000+00:00
Original source
Is there a way to check if a player is inside arena, specifically 3v3 arena? Would that be possible to check for inside an aurascript?
Archived author: r4dish • Posted: 2022-07-23T02:58:37.089000+00:00
Original source
```c++
Battleground* bg = player->GetBattleground();
if (bg && bg->isArena() && bg->GetArenaType() == ARENA_TYPE_3v3)
{
// do something
}
```
Archived author: r4dish • Posted: 2022-07-23T03:01:24.297000+00:00
Original source
"isArena" might be redundant in this case, but I'm not sure. Anyway, it should work.
Archived author: M'Dic • Posted: 2022-07-23T03:08:27.988000+00:00
Original source
```cpp
Battleground* bg = player->GetBattleground();
if (bg->GetArenaType() == ARENA_TYPE_3v3)
{
// do something
}```
Archived author: M'Dic • Posted: 2022-07-23T03:08:52.175000+00:00
Original source
bg && bg->isArena() seems to be the redundant part to me atleast