Quantcast WoWInterface - View Single Post - How to make a visible window? image link in disc
View Single Post
02-21-17, 02:07 AM   #12
wille480
A Wyrmkin Dreamwalker
Join Date: Jan 2017
Posts: 56
Just a question off topic.

Is this a acceptable way to store variables in an array? Going to have mulitple spellinfos in debuffs array and i want unitdebuff("raid1", debuffs) to look for any of those debuffs on the raid1 unit.

Lua Code:
  1. taintofthesea = GetSpellInfo(228054)
  2. TimeRelease = GetSpellInfo(219965)
  3.  
  4. local debuffs = {taintofthesea, TimeRelease}
  5. local name, _, _, _, _, duration, expires = UnitDebuff("raid1", debuffs)

If this is the wrong way please help me just make the correct array : ).
What i want in short is to unitdebuff() to be searching the debuffs array for any of those debuffs on the raid1 unutid target.
best regards!
  Reply With Quote