Spell4Frame.t:SetTexture(select(3, GetSpellInfo(Spell4Buff)))įor i, Spell5Buff in pairs(Spell5Buff) do
Local spellname = select(1, GetSpellInfo(Spell4Buff)) Spell3Frame.t:SetTexture(select(3, GetSpellInfo(Spell3Buff)))įor i, Spell4Buff in pairs(Spell4Buff) do Local spellname = select(1, GetSpellInfo(Spell3Buff)) Local spellname = select(1, GetSpellInfo(foodbuffs))įor i, Spell3Buff in pairs(Spell3Buff) do Local spellname = select(1, GetSpellInfo(flaskbuffs))įoodFrame.t:SetTexture(select(3, GetSpellInfo(foodbuffs))) Start checking buffs to see if we can find a match from the listįlaskFrame.t:SetTexture(select(3, GetSpellInfo(flaskbuffs)))įor i, flaskbuffs in pairs(flaskbuffs) do If We're a caster we may want to see differant buffs If event = "UNIT_AURA" and arg1 ~= "player" then return end Local function OnAuraChange(self, event, arg1, unit) RoleUpdater:SetScript("OnEvent", CheckRole) RoleUpdater:RegisterEvent("UPDATE_BONUS_ACTIONBAR") RoleUpdater:RegisterEvent("UNIT_INVENTORY_CHANGED") RoleUpdater:RegisterEvent("CHARACTER_POINTS_CHANGED") RoleUpdater:RegisterEvent("PLAYER_TALENT_UPDATE") RoleUpdater:RegisterEvent("ACTIVE_TALENT_GROUP_CHANGED") RoleUpdater:RegisterEvent("PLAYER_ENTERING_WORLD") Or UnitBuff("player", GetSpellInfo(65139)))) or Class = "ROGUE" or Class = "HUNTER" or (Class = "SHAMAN" and tree = 2) then If (((playerap > playerint) or (playeragi > playerint)) and not (Class = "SHAMAN" and tree ~= 1 and tree ~= 3) and not (UnitBuff("player", GetSpellInfo(24858)) Local playerap = base + posBuff + negBuff Local base, posBuff, negBuff = UnitAttackPower("player") Local playeragi = select(2, UnitStat("player", 2)) Local playerint = select(2, UnitStat("player", 4)) (Class = "DRUID" and tree = 2 and GetBonusBarOffset() = 3) then (Class = "DEATHKNIGHT" and tree = 1)) and If resilperc > GetDodgeChance() and resilperc > GetParr圜hance() and UnitLevel("player") = MAX_PLAYER_LEVEL then Local resilperc = GetCombatRatingBonus(COMBAT_RATING_RESILIENCE_PLAYER_DAMAGE_TAKEN)
Local function CheckRole(self, event, unit) If guardianelixired = true and battleelixired = true then Local spellname = select(1, GetSpellInfo(guardianelixirbuffs))įlaskFrame.t:SetTexture(select(3, GetSpellInfo(guardianelixirbuffs))) If guardianelixirbuffs and guardianelixirbuffs thenįor i, guardianelixirbuffs in pairs(guardianelixirbuffs) do Local spellname = select(1, GetSpellInfo(battleelixirbuffs))įlaskFrame.t:SetTexture(select(3, GetSpellInfo(battleelixirbuffs))) If battleelixirbuffs and battleelixirbuffs thenįor i, battleelixirbuffs in pairs(battleelixirbuffs) do We need to check if you have two differant elixirs if your not flasked, before we say your not flasked Local eXtraframe = CreateFrame("Button", "eXtraframe", Minimap)