View Single Post
02-03-15, 03:10 AM   #8
Choonstertwo
A Chromatic Dragonspawn
 
Choonstertwo's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2011
Posts: 194
Even though Lua doesn't have constants, there's nothing stopping you from using a normal local variable like a constant:
lua Code:
  1. local RIPTIDE_ID = 61295
  2.  
  3. -- ...
  4.  
  5. if GetSpellCooldown(RIPTIDE_ID) == 0 then
  6.     DoStuff()
  7. end
  Reply With Quote