Skip to content

Commit

Permalink
TBC/TheShatteredHalls: Remove some sync events
Browse files Browse the repository at this point in the history
  • Loading branch information
funkydude committed Oct 22, 2016
1 parent 3b7aca5 commit 80132d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
11 changes: 1 addition & 10 deletions TBC/TheShatteredHalls/KargathBladefist.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ function mod:GetOptions()
end

function mod:OnBossEnable()
self:RegisterUnitEvent("UNIT_SPELLCAST_SUCCEEDED", nil, "target", "focus")
self:AddSyncListener("Dance")

self:RegisterUnitEvent("UNIT_SPELLCAST_SUCCEEDED", nil, "boss1")
self:Death("Win", 16808)
end

Expand All @@ -30,14 +28,7 @@ end

function mod:UNIT_SPELLCAST_SUCCEEDED(_, _, _, _, spellId)
if spellId == 30738 then -- Blade Dance Targeting
self:Sync("Dance")
end
end

function mod:OnSync(sync)
if sync == "Dance" then
self:Message(-5899, "Attention", "Warning")
self:CDBar(-5899, 30)
end
end

11 changes: 1 addition & 10 deletions TBC/TheShatteredHalls/Omrogg.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ function mod:GetOptions()
end

function mod:OnBossEnable()
self:RegisterUnitEvent("UNIT_SPELLCAST_SUCCEEDED", nil, "target", "focus")
self:AddSyncListener("Beatdown")

self:RegisterUnitEvent("UNIT_SPELLCAST_SUCCEEDED", nil, "boss1")
self:Death("Win", 16809)
end

Expand All @@ -30,13 +28,6 @@ end

function mod:UNIT_SPELLCAST_SUCCEEDED(_, _, _, _, spellId)
if spellId == 30618 then -- Beatdown
self:Sync("Beatdown")
end
end

function mod:OnSync(sync)
if sync == "Beatdown" then
self:Message(-5894, "Attention", "Warning")
end
end

0 comments on commit 80132d0

Please sign in to comment.