All pastes #102852 Raw Edit

Untitled

public lua v1 · immutable
#102852 ·published 2006-07-27 23:40 UTC
rendered paste body
BarAnnounce:RegisterEvent("CHAT_MSG_SPELL_PERIODIC_SELF_DAMAGE", function(debuff)	if debuff then		local _, _, sunder, apps = strfind(debuff, "^You are afflicted by (.+) (.+).$")		if sunder == "Sunder Armor" or (sunder == "Sunder" and apps == "Armor") then else return end		if apps and apps ~= "Armor" then			apps = string.gsub(apps, "%(", "")			apps = string.gsub(apps, "%)", "")			apps = tonumber(apps)		else			apps = 1		end		if apps > 1 then			BarAnnounce:SendCancelBar(nil, nil, "Sunders", UnitName("player"))		end		BarAnnounce:SendShowBar(30, nil, nil, "%s on %s (%s)", true, "Custom Bars", "Warrior", nil, "Warrior", "Sunders", UnitName("player"), apps)	else		return	endend)