Thread: Scripted vars
View Single Post
06-13-11, 06:05 PM   #4
Narinka
A Chromatic Dragonspawn
Join Date: Oct 2008
Posts: 165
Sigg, dunno why, but your suggested code works not well enough with Latch repaint and I don't like to set up periodic repaint in every window I use.

Just try to do something like simple frame with scripted var + texture + show/hide feature or whatever..

Scripted var with buff event checked:
vBuff = true;
if unit:HasBuff("YourBuffGoesHere") then vBuff = false end

Window with latch repaint.

Now drop your buff, buff it back etc.. it just updates in some weird way.

If you change scripted var to something like:
vBuff = true;
if UnitBuff("player", "YourBuffGoesHere") then vBuff = false end;
Then everything works fine.

Last edited by Narinka : 06-13-11 at 06:10 PM. Reason: Alternative way works fine
  Reply With Quote