Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local CreateAuras = function(self, unit)
- local u = unit:match("[^%d]+")
- if multicheck(u, "target", "focus") then
- local Auras = CreateFrame("Frame", nil, self)
- Auras:SetHeight(cfg.height*2)
- Auras:SetWidth(cfg.width-2)
- Auras.gap = true
- Auras.disableCooldown = true
- if select(2, UnitClass("player")) == "MAGE" then
- Auras.showStealableBuffs = true
- end
- Auras.size = (cfg.width+3)/cfg.auraperrow-3
- Auras.spacing = 3
- Auras.PostCreateIcon = PostCreateIcon
- Auras.PostUpdateIcon = PostUpdateIcon
- Auras.PostUpdateGapIcon = PostUpdateGapIcon
- if unit == "target" or unit == "focus" then
- Auras:SetPoint("BOTTOMLEFT", self, "BOTTOMLEFT", 0, -25)
- Auras.initialAnchor = "BOTTOMLEFT"
- Auras["growth-x"] = "RIGHT"
- Auras["growth-y"] = "DOWN"
- Auras.numDebuffs = cfg.auraperrow
- Auras.numBuffs = cfg.auraperrow
- if cfg.AuraFilter.ignoreBuff or cfg.AuraFilter.ignoreDebuff then
- Auras.CustomFilter = CustomFilter
- end
- else -- boss 1-5
- Auras:SetPoint("BOTTOMLEFT", self, "TOPLEFT", 1, 12)
- Auras.initialAnchor = "BOTTOMLEFT"
- Auras["growth-x"] = "RIGHT"
- Auras["growth-y"] = "UP"
- Auras.numDebuffs = 4
- Auras.numBuffs = 3
- Auras.CustomFilter = BossAuraFilter
- end
- self.Auras = Auras
- end
- end
- local CreateDebuffs = function(self, unit)
- if unit == "player" or unit == "pet" then
- local Debuff = CreateFrame("Frame", nil, self)
- Debuff:SetHeight(cfg.height*2)
- Debuff:SetWidth(cfg.width-2)
- Debuff.disableCooldown = true
- Debuff.spacing = 3
- Debuff.PostCreateIcon = PostCreateIcon
- Debuff.PostUpdateIcon = PostUpdateIcon
- if cfg.playerdebuff.enable and unit == "player" then
- Debuff:SetPoint("BOTTOMLEFT", self, "TOPLEFT", 1, -90)
- Debuff.initialAnchor = "BOTTOMLEFT"
- Debuff["growth-x"] = "RIGHT"
- Debuff["growth-y"] = "UP"
- Debuff.size = (cfg.width+3)/cfg.playerdebuff.num-3
- Debuff.num = cfg.playerdebuff.num
- elseif unit == "pet" then
- Debuff:SetPoint("BOTTOMLEFT", self, "BOTTOMRIGHT", 5, 0)
- Debuff.initialAnchor = "BOTTOMLEFT"
- Debuff["growth-x"] = "RIGHT"
- Debuff["growth-y"] = "DOWN"
- Debuff.size = (cfg.width+3)/cfg.auraperrow-3
- Debuff.num = 5
- end
- self.Debuffs = Debuff
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement