Skip to content

Commit

Permalink
Simplify comm method
Browse files Browse the repository at this point in the history
  • Loading branch information
funkydude committed Oct 22, 2016
1 parent 62850c3 commit 144ee1a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions AQ40/Cthun.lua
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,9 @@ do
function mod:BigWigs_BossComm(_, msg)
if times[msg] then
local t = GetTime()
if msg == "CThunP2Start" and t-times[msg] > 5 then
if t-times[msg] > 5 then
times[msg] = t
self:CThunP2Start()
elseif msg == "CThunWeakened" and t-times[msg] > 5 then
times[msg] = t
self:CThunWeakened()
self[msg](self)
end
end
end
Expand Down

0 comments on commit 144ee1a

Please sign in to comment.