1. #1

    An action was blocked in combat

    while in combat if player is dead I get this error from taint log

    Code:
    9/2 14:15:47.420  An action was blocked in combat because of taint from NewAge - SecureStateDriverManager:SetAttribute()
    9/2 14:15:47.420      Interface\FrameXML\SecureStateDriver.lua:10 RegisterStateDriver()
    9/2 14:15:47.420      Interface\AddOns\NewAge\Target.lua:129
    9/2 14:15:47.420  An action was blocked in combat because of taint from NewAge - SecureStateDriverManager:SetAttribute()
    9/2 14:15:47.420      Interface\FrameXML\SecureStateDriver.lua:11 RegisterStateDriver()
    9/2 14:15:47.420      Interface\AddOns\NewAge\Target.lua:129

    line 129 is "RegisterStateDriver(TF, "visibility", "[exists] show; hide");" from code below

    Code:
    TF:SetScript("OnEvent", function(self, event, ...)
      if (event == "PLAYER_TARGET_CHANGED") then
        RegisterStateDriver(TF, "visibility", "[exists] show; hide");
      end
    end);

    and "TF = CreateFrame("Button", nil, UIParent, "SecureUnitButtonTemplate");"

    any help?

  2. #2
    you cant change State while in combat

    Code:
    RegisterStateDriver(TF, "visibility", "[@target, exists] show; hide");

  3. #3
    yes I understand, but I think that when player is dead the combat is stop and I can hide the frame. is that right?

  4. #4
    yes but you try to change State on target changing

    you need PLAYER_REGEN_ENABLED

  5. #5
    I use PLAYER_REGEN_ENABLED but I send the row that case error here's the full fuction

    Code:
    TF:SetScript("OnEvent", function(self, event, ...)
      if (event == "PLAYER_REGEN_DISABLED") then RegisterStateDriver(TF, "visibility", "[combat, exists] show; hide") end
      if (event == "PLAYER_REGEN_ENABLED") then UnregisterStateDriver(TF, "visibility") end
      if (event == "PLAYER_TARGET_CHANGED") then
        RegisterStateDriver(TF, "visibility", "[exists] show; hide");
      end
    end);

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •