Cell

Cell

1M Downloads

Lots of Lua errors when oppening the texture browser

spamwax opened this issue ยท 2 comments

commented

This is how I get it:

  1. On a Holy Paladin with Beacon of Faith talent selected
  2. Add a new texture indicator
  3. Enter 53563 (which is Beacon of Light) for the spell ID
1566x Cell/Indicators/Base.lua:1505: bad argument #1 to 'SetAlpha' (Usage: self:SetAlpha(alpha))
[string "=[C]"]: in function `SetAlpha'
[string "@Cell/Indicators/Base.lua"]:1505: in function <Cell/Indicators/Base.lua:1498>

Locals:
(*temporary) = CellSoloFramePlayerindicator4 {
 PixelSnapDisabled = true
}
(*temporary) = Infinite
commented

This is how I fixed it just before line 1505

local _tAlpha
if not texture._duration or texture._duration == 0 then
  _tAlpha = 1 
else
  _tAlpha = texture._remain / texture._duration * 0.9 + 0.1
end
texture.tex:SetAlpha(_tAlpha)
commented

Thank you!
b7b1c99
fixed