[DiscordArchive] I think but I’m not sure that this determines if BG is still ongoing?
[DiscordArchive] I think but I’m not sure that this determines if BG is still ongoing?
Archived author: dr3amforg3 • Posted: 2025-05-31T15:55:37.197000+00:00
Original source
I think but I’m not sure that this determines if BG is still ongoing?
Archived author: dr3amforg3 • Posted: 2025-05-31T15:56:30.676000+00:00
Original source
What exactly would you want to achieve? Maybe that would be easier ?
Archived author: Clement • Posted: 2025-05-31T15:56:48.392000+00:00
Original source
I made it work relying on the preparation spell
Archived author: Clement • Posted: 2025-05-31T15:56:58.813000+00:00
Original source
(I wanted bg to reset spells cooldown like arena do)
Archived author: dr3amforg3 • Posted: 2025-05-31T15:57:11.437000+00:00
Original source
Ohh ok sorry than my bad
Archived author: Clement • Posted: 2025-05-31T15:57:33.367000+00:00
Original source
I've still didn't understand really why we can't construct ourself the BG object since it exist in other events
Archived author: Clement • Posted: 2025-05-31T15:57:59.157000+00:00
Original source
I tried to store it in a table and access it by instanceId but that was dereferenced once the event was done
Archived author: Clement • Posted: 2025-05-31T16:00:40.544000+00:00
Original source
Thank you for the reply <@922367745620865035>
Archived author: dr3amforg3 • Posted: 2025-05-31T16:01:22.883000+00:00
Original source
No problem sorry I have mislead you
Archived author: Clement • Posted: 2025-05-31T16:03:14.952000+00:00
Original source
here is my working function if anyone is interested, nothing ground breaking
```lua
local AURA_PREPARATION = 44521 local PLAYER_EVENT_ON_UPDATE_ZONE = 27
RegisterPlayerEvent(PLAYER_EVENT_ON_UPDATE_ZONE, function (event, player)
if player:InBattleground() and player:HasAura(AURA_PREPARATION) then
player:RemoveArenaSpellCooldowns()
end
end)
```