Disable Loss Of Control Cooldown

Disable Loss Of Control Cooldown

4.9k Downloads

Bug fix for tainting + simplification

AdamPavlis90 opened this issue ยท 0 comments

commented

Hi, the whole code needed for the actual funcionality and tainting error fixes (old code touches properties of secured frame):

function ActionButton_UpdateCooldown_Hooked(self)
if self.cooldown.currentCooldownType == COOLDOWN_TYPE_LOSS_OF_CONTROL then
CooldownFrame_Clear(self.cooldown);
end
end

hooksecurefunc("ActionButton_UpdateCooldown", ActionButton_UpdateCooldown_Hooked);