WoWInterface SVN CompactBars

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 27 to Rev 28
    Reverse comparison

Rev 27 → Rev 28

trunk/CompactBars/spells.lua
15,9 → 15,7
function spells:GMTD(id)
local name = GetSpellInfo(id)
local dur, mine = select(7, UnitDebuff("target", name))
if select(4, GetBuildInfo()) > 30000 then
mine = mine == "player"
end
mine = mine == "player"
if not dur then
dur = 0
else
trunk/CompactBars/config.lua
28,6 → 28,8
db.defaults.profile.spells[info.spellid..info.typ] = deepCopy(info)
end
function config:insertSpell(info, db)
if not info then return end
if not GetSpellInfo(info.spellid) then return end
if info and info.typ then
if not (info.typ == "Dots" or info.typ == "Shortbuffs" or info.typ == "Debuffs" or info.typ == "CCs" or info.typ == "Cooldowns" or info.typ == "ItemCooldowns" or info.typ == "SharedDebuffs" or info.typ == "InternalCooldowns") then
return
trunk/CompactBars/core.lua
435,9 → 435,7
for i = 1, 40 do
if UnitDebuff("target", i) then
local name, rank, _, application, _, _, expTime, ismine = UnitDebuff("target", i)
if select(4, GetBuildInfo()) > 30000 then
ismine = ismine == "player"
end
ismine = ismine == "player"
if name then
if appl == 0 then appl = 1 end
local link = GetSpellLink(name, rank)
482,9 → 480,7
local function debuffCheck(cname, id)
for i = 1, 40 do
local name, rank, icon, count, debuffType, duration, expirationTime, isMine, isStealable = UnitDebuff("target", i)
if select(4, GetBuildInfo()) > 30000 then
isMine = isMine == "player"
end
isMine = isMine == "player"
if isMine and cname == name then
return name, rank, icon, count, debuffType, duration, expirationTime, isMine, isStealable
end
trunk/CompactBars/modules/deathknight.lua
69,7 → 69,7
-- lichborne
[49039] = [[return CompactBars.sp:GPB(49039)]],
-- death trance!
[50466] = [[return CompactBars.sp:GPB(50466)]],
--[50466] = [[return CompactBars.sp:GPB(50466)]],
-- unbreakable armor
[51271] = [[return CompactBars.sp:GPB(51271)]],
-- vampiric blood
trunk/CompactBars/modules/warlock.lua
33,15 → 33,6
[47863] = 980,
[47864] = 980,
[980] = [[return CompactBars.sp:GMTD(980)]],
-- Siphon Life
[18879] = 18265,
[18880] = 18265,
[18881] = 18265,
[27264] = 18265,
[30911] = 18265,
[47861] = 18265,
[47862] = 18265,
[18265] = [[return CompactBars.sp:GMTD(18265)]],
-- Seed of Corruption
[47835] = 27243,
[47836] = 27243,
182,7 → 173,7
-- metamorphosis
[47241] = [[return CompactBars.sp:GPB(47241)]],
-- eradicition
[47274] = [[return CompactBars.sp:GPB(47274)]],
--[47274] = [[return CompactBars.sp:GPB(47274)]],
-- empowered imp
[47283] = [[return CompactBars.sp:GPB(47283)]],
-- demonic empowerment (maybe this is a buff on the pet!)
192,9 → 183,9
[54508] = [[local name = GetSpellInfo(54508) local dur = select(7, UnitBuff("pet", name)) if not dur then dur = 0 else dur = dur-GetTime() end return dur]],
[54443] = [[local name = GetSpellInfo(54443) local dur = select(7, UnitBuff("pet", name)) if not dur then dur = 0 else dur = dur-GetTime() end return dur]],
-- demonic empathy
[48069] = [[return CompactBars.sp:GPB(48069)]],
[54388] = 48069,
[54389] = 48069,
--[48069] = [[return CompactBars.sp:GPB(48069)]],
--[54388] = 48069,
--[54389] = 48069,
-- backdraft
[54274] = [[return CompactBars.sp:GPB(54274)]],
[54276] = 54274,
trunk/CompactBars/modules/hunter.lua
131,13 → 131,14
[34837] = 34833,
},
Debuffs = {
 
-- silencing shot
[34490] = [[return CompactBars.sp:GMTD(34490)]],
 
-- improved wing clip
[19229] = [[return CompactBars.sp:GMTD(19229), 1, {r = 1, g = 0, b = 0, a = 1}]],
[35963] = 19229,
[47168] = 19229,
--[19229] = [[return CompactBars.sp:GMTD(19229), 1, {r = 1, g = 0, b = 0, a = 1}]],
--[35963] = 19229,
--[47168] = 19229,
 
-- concussive shot
[5116] = [[return CompactBars.sp:GMTD(5116)]],
trunk/CompactBars/modules/warrior.lua
28,6 → 28,8
[7386] = [[return 15, 5]],
},
Debuffs = {
-- shattering throw
[64382] = [[return CompactBars.sp:GMTD(64382)]],
-- trauma
[46856] = [[return CompactBars.sp:GMTD(46856)]],
[46857] = 46856,
154,6 → 156,8
[47436] = 6673,
},
Cooldowns = {
-- shattering throw
[64382] = 100,
-- bloodrage
[2687] = 100,
-- taunt
trunk/CompactBars/modules/priest.lua
68,11 → 68,11
-- fade
[586] = [[return CompactBars.sp:GPB(586)]],
-- holy concentration (clearcasting)
--[34754] = [[return CompactBars.sp:GPB(34754)]],
-- holy concentration
[34754] = [[return CompactBars.sp:GPB(34754)]],
-- improved holy concentration
[47894] = [[return CompactBars.sp:GPB(47894)]],
[47895] = 47894,
[47896] = 47894,
[34859] = 34754,
[34860] = 34754,
-- improved spirit tap
[49694] = [[return CompactBars.sp:GPB(49694)]],
[59000] = 49694,