Mercurial > wow > degaine
comparison Degaine.lua @ 26:dd1ef3996d7f v1.0beta4
Small change in UNIT_AURA
| author | contrebasse |
|---|---|
| date | Fri, 10 Dec 2010 21:42:27 +0100 |
| parents | 3b1123f50be4 ddcb7021838b |
| children | a91e7552c682 |
comparison
equal
deleted
inserted
replaced
| 25:06da6c8049fc | 26:dd1ef3996d7f |
|---|---|
| 97 UNIT_AURA = function() | 97 UNIT_AURA = function() |
| 98 if IsMounted() then | 98 if IsMounted() then |
| 99 wasMounted = true | 99 wasMounted = true |
| 100 else | 100 else |
| 101 if wasMounted then | 101 if wasMounted then |
| 102 wasMounted = false | |
| 102 start() | 103 start() |
| 103 wasMounted = false | |
| 104 end | 104 end |
| 105 end | 105 end |
| 106 end | 106 end |
| 107 } | 107 } |
| 108 local SpellBlackList = { -- spells that don't stealth weapons (works with events1player) | 108 local SpellBlackList = { -- spells that don't stealth weapons (works with events1player) |
| 248 wasGossipOpened = not isGossipClosed | 248 wasGossipOpened = not isGossipClosed |
| 249 isGossipClosed = true | 249 isGossipClosed = true |
| 250 t_lastGossipClosed = GetTime() | 250 t_lastGossipClosed = GetTime() |
| 251 | 251 |
| 252 elseif event == "PLAYER_REGEN_ENABLED" then | 252 elseif event == "PLAYER_REGEN_ENABLED" then |
| 253 desactivate() | 253 for k,_ in pairs(events1player) do DegaineFrame:UnregisterEvent(k) end |
| 254 --desactivate() | |
| 254 elseif event == "PLAYER_REGEN_DISABLED" then | 255 elseif event == "PLAYER_REGEN_DISABLED" then |
| 255 activate() | 256 for k,_ in pairs(events1player) do DegaineFrame:RegisterEvent(k) end |
| 257 --activate() | |
| 256 | 258 |
| 257 elseif event == "ADDON_LOADED" and arg1==AddonName then | 259 elseif event == "ADDON_LOADED" and arg1==AddonName then |
| 258 if Degaine_isAuto==nil then | 260 if Degaine_isAuto==nil then |
| 259 Degaine_isAuto = true | 261 Degaine_isAuto = true |
| 260 end | 262 end |
