Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firelands/Alysrazor: Fix Firestorm bar #28

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

stako
Copy link
Contributor

@stako stako commented Nov 28, 2024

Currently, the FirestormOver method is supposed to be triggered by a SPELL_AURA_REMOVED combat log event:
self:Log("SPELL_AURA_REMOVED", "FirestormOver", 100744)

Turns out there are no aura-related events for Firestorm firing in the combat log for some reason.

Confirmed that the spell ID is correct for the aura.
mpc-hc64_amrndgrPmq

For a solution, using self:SimpleTimer(function() self:FirestormOver(args) end, 10) in the Firestorm method instead of self:Log("SPELL_AURA_REMOVED", "FirestormOver", 100744)

@funkydude
Copy link
Member

That wont work unfortunately, you cannot trust the args table hasn't changed in the duration the Firestorm takes to end. It might, but it might not. The functions don't create new tables each time they are called.

@stako
Copy link
Contributor Author

stako commented Dec 2, 2024

Ah, didn't realize that - must be why the lint check failed on the first commit. It's rectified in the second commit though - the args table isn't used by the FirestormOver method at all in that one.

Despite that, this week I'll see if UNIT_SPELLCAST_CHANNEL_STOP works.

@funkydude
Copy link
Member

That event will probably work, but I've also asked Blizz to remove the "no aura log" spell flag to get it shown in the combat log.

@stako stako reopened this Dec 11, 2024
@stako
Copy link
Contributor Author

stako commented Dec 11, 2024

Tested UNIT_SPELLCAST_CHANNEL_STOP today, works just fine. Adjusted PR

@funkydude funkydude merged commit 3ea0512 into BigWigsMods:master Dec 18, 2024
2 checks passed
@funkydude
Copy link
Member

Sorry, merged, thank you!

@stako stako deleted the alysrazor branch December 18, 2024 22:08
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.

2 participants