Skip to content

Commit

Permalink
Initial version (converted from my Weak Aura)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidMoore committed Aug 11, 2021
1 parent 16b6a51 commit 1b16eaa
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 0 deletions.
30 changes: 30 additions & 0 deletions BronCena.lua
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
14 changes: 14 additions & 0 deletions BronCena.toc
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 added Media/Sounds/broncena.ogg
Binary file not shown.
11 changes: 11 additions & 0 deletions README.md
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

0 comments on commit 1b16eaa

Please sign in to comment.