Skip to content

Commit

Permalink
Fixed isMounted
Browse files Browse the repository at this point in the history
  • Loading branch information
Geigerkind committed Dec 4, 2018
1 parent 9351d8b commit 15c5f01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
13 changes: 1 addition & 12 deletions Conditions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,7 @@ local UnitInRaid = UnitInRaid
local GetBattlefieldStatus = GetBattlefieldStatus

function MPOWA:IsMounted()
MPowa_Tooltip:SetOwner(UIParent, "ANCHOR_NONE")
for i=0,40 do
MPowa_Tooltip:ClearLines()
MPowa_Tooltip:SetPlayerBuff(GetPlayerBuff(i, "HELPFUL|PASSIVE"))
local desc = MPowa_TooltipTextLeft2:GetText()
if (not desc) then break end
if strfind(desc, MPOWA_SCRIPT_MOUNT_100) or strfind(desc, MPOWA_SCRIPT_MOUNT_60) then
self.mounted = true
return
end
end
self.mounted = false
self.mounted = IsMounted();
end

local UnitInParty = UnitInParty
Expand Down
5 changes: 3 additions & 2 deletions libs/AnimationGroup/alpha.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ end
function Alpha:OnUpdate(elapsed)
local properties = self.group.properties
self.progress = self.smoothing_func(self.time / self.duration).y
if (self.duration > 0) then
self.progress = self.smoothing_func(self.time / self.duration).y
end
local frame = self.group.parent
frame:SetAlpha(properties.alpha + self.progress * self.alpha_change)
Expand Down

0 comments on commit 15c5f01

Please sign in to comment.