-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial version (converted from my Weak Aura)
- Loading branch information
1 parent
16b6a51
commit 1b16eaa
Showing
4 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
local _, ns = ... | ||
|
||
local playerGUID = UnitGUID("player") | ||
|
||
local f = CreateFrame("Frame") | ||
f:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED") | ||
f:SetScript("OnEvent", function(self, event) | ||
if event == "COMBAT_LOG_EVENT_UNFILTERED" then | ||
self:COMBAT_LOG_EVENT_UNFILTERED(CombatLogGetCurrentEventInfo()) | ||
end | ||
end) | ||
|
||
function f:COMBAT_LOG_EVENT_UNFILTERED(...) | ||
local timestamp, subevent, _, sourceGUID, sourceName, sourceFlags, sourceRaidFlags, destGUID, destName, destFlags, destRaidFlags, spellId = ... | ||
|
||
if subevent == "SPELL_SUMMON" then | ||
if spellId == 333961 then | ||
|
||
-- Limit to just ours? | ||
if sourceGUID == playerGUID then | ||
PlaySoundFile("Interface/AddOns/BronCena/Media/Sounds/broncena.ogg") | ||
--print("Your Bron appears!") | ||
else | ||
PlaySoundFile("Interface/AddOns/BronCena/Media/Sounds/broncena.ogg") | ||
--print("A wild Bron appears!") | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
## Interface: 90100 | ||
|
||
## Title: Bron Cena | ||
## Notes: Helps Bron Cena announce his arrival in style | ||
## Author: whup | ||
## Version: v0.1 | ||
|
||
## X-Category: Miscellaneous, Audio & Video | ||
## X-License: MIT License | ||
## X-Website: https://github.com/SadRobotGG/Auras/tree/main/BronCena | ||
## X-Curse-Project-ID: 513767 | ||
## X-WoWI-ID: | ||
|
||
BronCena.lua |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Bron Cena | ||
|
||
When a wild Bron appears, the John Cena theme tune will play. | ||
|
||
You don't have to be Kyrian to enjoy this add-on ! When someone near you summons Bron, the theme will play. | ||
|
||
## Credits | ||
|
||
Thanks to the gang at [Immaterial](https://raider.io/guilds/us/saurfang/Immaterial) for the inspiration! | ||
|
||
The [John Cena entrance music](https://www.youtube.com/watch?v=zu8bEljrolk) is Copyright WWE Music Group |