View Single Post
05-20-16, 11:16 AM   #1
galvin
A Frostmaul Preserver
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 265
GetRuneCooldown will crash your client

Posted this on the official forums a while back.

If you're not a death knight and you call this function it'll crash the client.

Work around I use in my mod
Code:
local GetRuneCooldown1 = GetRuneCooldown

local function GetRuneCooldown(RuneIndex)
  if Main.PlayerClass ~= 'DEATHKNIGHT' then
    return 0, 0, true
  else
    return GetRuneCooldown1(RuneIndex)
  end
end