/trunk
end |
function events:READY_CHECK(initiator,timer) --ReadyCheck PopUp |
print(UnitName('player')==initiator) |
--print(UnitName('player')==initiator) |
if not (UnitName('player')==initiator) then |
print(initiator) |
--print(initiator) |
tinsert(KA.handleT,'ReadyCheckFrame') |
KA.handler:EnableKeyboard(1) |
end |
KA.handler:SetScript('OnKeyUp',function(self,key) |
if key=='ENTER' then |
local frame = _G[KA.handleT[1]] |
if frame.which == "REPLACE_ENCHANT" then |
if frame.which == "REPLACE_ENCHANT" or frame.which=='DEATH' or frame.which='RECOVER_CORPSE_INSTANCE' then |
tremove(KA.handleT,1) |
if #KA.handleT==0 then |
self:EnableKeyboard(0) |