All pastes #97946 Raw Edit

ag_UF AceHeal Plugin

public text v1 · immutable
#97946 ·published 2006-07-24 06:01 UTC
rendered paste body
AceHealAGUF = AceHeal:new({
	name          = AceHealLocals.Title ,
	description   = "AceHeal ag_UnitFrames extension",
	version       = AceHealLocals.Version,
	releaseDate   = "23-07-2006",
	aceCompatible = "103",
	author        = "vhaarr",

})

function AceHealAGUF:Enable()
	AceHeal:Enable(this)
	if aUF then
	   aUF.aUFunit.prototype.OnClickOld = aUF.aUFunit.prototype.OnClick
	   aUF.aUFunit.prototype.OnClick = self.AGUFClick
	   self.Msg("Click-Casting Enabled for ag_UnitFrames")
	end
end

function AceHealAGUF:AGUFClick(button)
    if AceHeal:OnClick(button, self.unit) then
		self:OnClickOld(button)
    end
end

AceHealAGUF:RegisterForLoad()