View difference between Paste ID: 33fM9ZnA and FKJaaskR
SHOW: | | - or go back to the newest paste.
1
		local ClassIcons = {}
2-
		if myClass == "MONK" or myClass == "PRIEST" or myClass == "PALADIN" then	
2+
		if myClass == "MONK" or myClass == "PRIEST" or myClass == "PALADIN"  then	
3
		  for index = 1, 5 do
4
			local Icon = CreateFrame("Frame", "coldCI"..index, self)
5
			Icon.UpdateTexture = dummy
6
			Icon:SetSize(10, 10)
7
			Icon:SetBackdrop(backdrop)
8
			Icon:SetBackdropBorderColor(0,0,0)
9
			Icon:SetFrameLevel(6)
10-
			ClassIcons[index] = Icon
10+
			ClassIcons[index] = Icon	
11-
			
11+
12-
			if myClass == "WARLOCK" then
12+
13-
				Icon:SetScale(.0001)
13+
14-
			end	
14+
15
              ClassIcons[backindex]:SetPoint('BOTTOMRIGHT', Health, 'BOTTOMRIGHT', -2, 2)
16
			else  
17
			  ClassIcons[backindex]:SetPoint('RIGHT', ClassIcons[backindex+1], 'LEFT', -2, 0)
18
			end  
19
		  end	
20
		end
21
		self.ClassIcons = ClassIcons