# HG changeset patch # User contrebasse # Date 1294485751 -3600 # Node ID 64a266eaf0efb4a56e4fa25dbbcc4207d89a8a66 # Parent 37d2dcb3688dbef0710bec0667348c6acbc54291 No delay after unmounting (to be tested with vehicles) diff -r 37d2dcb3688d -r 64a266eaf0ef Degaine.lua --- a/Degaine.lua Sat Jan 08 12:19:01 2011 +0100 +++ b/Degaine.lua Sat Jan 08 12:22:31 2011 +0100 @@ -74,9 +74,9 @@ DegaineFrame:SetScript("OnUpdate", nil) end end -local start = function() +local start = function(arg_delay) if Degaine_isAuto and not InCombatLockdown() then - t_left = delay + t_left = arg_delay or delay DegaineFrame:SetScript("OnUpdate", Degaine_OnUpdate) end end @@ -167,7 +167,7 @@ wasMounted = true else if wasMounted then - start() + start(0) -- no animation for unmounting wasMounted = false end end