Mercurial > wow > degaine
comparison Degaine.lua @ 22:ddcb7021838b
... and reenable spells only when out of combat again
| author | contrebasse |
|---|---|
| date | Fri, 10 Dec 2010 20:07:03 +0100 |
| parents | e3f92fae450b |
| children | dd1ef3996d7f |
comparison
equal
deleted
inserted
replaced
| 21:e3f92fae450b | 22:ddcb7021838b |
|---|---|
| 208 | 208 |
| 209 elseif event == "PLAYER_REGEN_ENABLED" then | 209 elseif event == "PLAYER_REGEN_ENABLED" then |
| 210 for k,_ in pairs(events1player) do DegaineFrame:UnregisterEvent(k) end | 210 for k,_ in pairs(events1player) do DegaineFrame:UnregisterEvent(k) end |
| 211 --desactivate() | 211 --desactivate() |
| 212 elseif event == "PLAYER_REGEN_DISABLED" then | 212 elseif event == "PLAYER_REGEN_DISABLED" then |
| 213 activate() | 213 for k,_ in pairs(events1player) do DegaineFrame:RegisterEvent(k) end |
| 214 --activate() | |
| 214 | 215 |
| 215 elseif event == "ADDON_LOADED" and arg1==AddonName then | 216 elseif event == "ADDON_LOADED" and arg1==AddonName then |
| 216 if Degaine_isAuto==nil then | 217 if Degaine_isAuto==nil then |
| 217 Degaine_isAuto = true | 218 Degaine_isAuto = true |
| 218 end | 219 end |
