Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,6 @@ $RECYCLE.BIN/
Network Trash Folder
Temporary Items
.apdisk

# IDE files
.idea/
65 changes: 44 additions & 21 deletions DebuffTimers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ do
end)
for _, event in {
'CHAT_MSG_COMBAT_HONOR_GAIN', 'CHAT_MSG_COMBAT_HOSTILE_DEATH', 'PLAYER_REGEN_ENABLED',
'CHAT_MSG_SPELL_AURA_GONE_OTHER', 'CHAT_MSG_SPELL_BREAK_AURA',
'CHAT_MSG_SPELL_AURA_GONE_OTHER', 'CHAT_MSG_SPELL_BREAK_AURA','CHAT_MSG_COMBAT_SELF_HITS',
'CHAT_MSG_SPELL_PERIODIC_HOSTILEPLAYER_DAMAGE', 'CHAT_MSG_SPELL_PERIODIC_HOSTILEPLAYER_BUFFS', 'CHAT_MSG_SPELL_PERIODIC_CREATURE_DAMAGE',
'SPELLCAST_STOP', 'SPELLCAST_INTERRUPTED', 'CHAT_MSG_SPELL_SELF_DAMAGE', 'CHAT_MSG_SPELL_FAILED_LOCALPLAYER',
'PLAYER_TARGET_CHANGED', 'UPDATE_BATTLEFIELD_SCORE',
Expand Down Expand Up @@ -102,10 +102,11 @@ end

function SetActionRank(name, rank)
local _, _, rank = strfind(rank or '', 'Rank (%d+)')
if rank and AUFdebuff.SPELL[name] and AUFdebuff.EFFECT[name] then
AUFdebuff.EFFECT[AUFdebuff.SPELL[name].EFFECT or name].DURATION = AUFdebuff.SPELL[name].DURATION[tonumber(rank)]
elseif rank and AUFdebuff.SPELL[name] and AUFdebuff.SPELL[name].EFFECT then
AUFdebuff.EFFECT[AUFdebuff.SPELL[name].EFFECT or name].DURATION = AUFdebuff.SPELL[name].DURATION[tonumber(rank)]
if rank and AUFdebuff.SPELL[name] then
local effectName = AUFdebuff.SPELL[name].EFFECT or name
if AUFdebuff.EFFECT[effectName] then
AUFdebuff.EFFECT[effectName].DURATION = AUFdebuff.SPELL[name].DURATION[tonumber(rank)]
end
end
end

Expand Down Expand Up @@ -255,6 +256,10 @@ function CHAT_MSG_SPELL_BREAK_AURA()
end
end

function CHAT_MSG_COMBAT_SELF_HITS()

end

function ActivateDRTimer(effect, unit)
for k, v in DR_CLASS do
if v == DR_CLASS[effect] and EffectActive(k, unit) then
Expand Down Expand Up @@ -332,9 +337,14 @@ function StartTimer(effect, unit, start)
timer.END = timer.START

local duration = 0
if AUFdebuff.EFFECT[effect] and AUFdebuff.EFFECT[effect].DURATION then duration = AUFdebuff.EFFECT[effect].DURATION end
if AUFdebuff.EFFECT[effect] and AUFdebuff.EFFECT[effect].DURATION then
duration = AUFdebuff.EFFECT[effect].DURATION
end

local comboTime = 0
if AUFdebuff.SPELL[effect] and AUFdebuff.SPELL[effect].COMBO then comboTime = AUFdebuff.SPELL[effect].COMBO[COMBO] end
if AUFdebuff.SPELL[effect] and AUFdebuff.SPELL[effect].COMBO then
comboTime = AUFdebuff.SPELL[effect].COMBO[COMBO]
end

if AUFdebuff.SPELL[effect] and AUFdebuff.SPELL[effect].COMBO and COMBO > 0 then
duration = duration + comboTime
Expand Down Expand Up @@ -697,7 +707,7 @@ function AUF:UpdateDebuffs()
AUF.DoubleCheck[timer.EFFECT] = true
end
-- xper exception
if getglobal("XPerl_Target_BuffFrame") then
if getglobal("XPerl_Target_BuffFrame") then
AUF.Debuff[i].parent:SetWidth(getglobal(AUF.DebuffAnchor..i):GetWidth()*0.7)
AUF.Debuff[i].parent:SetHeight(getglobal(AUF.DebuffAnchor..i):GetHeight()*0.7)
AUF.Debuff[i]:SetScale(getglobal(AUF.DebuffAnchor..i):GetHeight()/36*0.7)
Expand All @@ -718,8 +728,7 @@ function AUF:UpdateDebuffs()
end

if AUF.UnitBuff("target",i) == "Interface\\Icons\\"..AUFdebuff.EFFECT[timer.EFFECT].ICON and getglobal(AUF.BuffAnchor..i) then

if getglobal("XPerl_Target_BuffFrame") then
if getglobal("XPerl_Target_BuffFrame") then
AUF.Buff[i].parent:SetWidth(getglobal(AUF.BuffAnchor..i):GetWidth()*0.7)
AUF.Buff[i].parent:SetHeight(getglobal(AUF.BuffAnchor..i):GetHeight()*0.7)
AUF.Buff[i]:SetScale(getglobal(AUF.BuffAnchor..i):GetHeight()/36*0.7)
Expand Down Expand Up @@ -785,6 +794,16 @@ function AUF:UpdateDatabase()
end
end
end

if class == "GENERAL" then
for effect, info in pairs(effects) do
for name, tab in pairs(info) do
if effect == "EFFECT" and AUF_settings.effects[class].effect[name] then
AUFdebuff.EFFECT[name] = AUF_Debuff[class].EFFECT[name]
end
end
end
end
end
end

Expand Down Expand Up @@ -1129,30 +1148,34 @@ function AUF:DatabasePreload()
ICON = "Spell_Fire_SoulBurn",
DURATION = 30,
}

AUF_Debuff["MAGE"].SPELL["Scorch"] = {
DURATION = {30, 30, 30, 30, 30, 30, 30},
EFFECT = "Fire Vulnerability",
}

end

local _, _, _, _, rank = GetTalentInfo(2, 10) -- improved chilled
if rank == 3 then
AUF_Debuff["MAGE"].EFFECT["Chilled"].DURATION = 8
end

local _, _, _, _, rank = GetTalentInfo(1, 11) -- improved counterspell
if rank == 2 then
AUF_Debuff["MAGE"].EFFECT["Counterspell - Silenced"].DURATION = 4
AUF_Debuff["MAGE"].EFFECT["Chilled"].DURATION = 8
end

local _, _, _, _, rank = GetTalentInfo(3, 16) -- winters chill
if rank == 1 or rank == 2 or rank == 3 or rank == 4 or rank == 5 then
if rank > 0 then
AUF_Debuff["MAGE"].EFFECT["Winter's Chill"] = {
ICON = "Spell_Frost_ChillingBlast",
DURATION = 15,
}
end
end

if CLASS == "PALADIN" then
local _, _, _, _, rank = GetTalentInfo(1, 12) -- Lasting Judgement
local duration = (rank+1) * 10
AUF_Debuff["PALADIN"].EFFECT["Judgement of the Crusader"].DURATION = duration
AUF_Debuff["PALADIN"].EFFECT["Judgement of Light"].DURATION = duration
AUF_Debuff["PALADIN"].EFFECT["Judgement of Wisdom"].DURATION = duration
AUF_Debuff["PALADIN"].EFFECT["Judgement of Justice"].DURATION = duration
end
end
60 changes: 50 additions & 10 deletions Debuffs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ AUF_Debuff = {

["Counterspell - Silenced"] = {
ICON = "Spell_Frost_IceShock",
DURATION = 10,
DURATION = 4,
},

["Fireball"] = {
Expand Down Expand Up @@ -487,6 +487,26 @@ AUF_Debuff = {
ICON = "Spell_Holy_TurnUndead",
DURATION = 10,
},

["Judgement of the Crusader"] = {
ICON = "Spell_Holy_HolySmite",
DURATION = 10
},

["Judgement of Light"] = {
ICON = "Spell_Holy_HealingAura",
DURATION = 10
},

["Judgement of Wisdom"] = {
ICON = "Spell_Holy_RighteousnessAura",
DURATION = 10
},

["Judgement of Justice"] = {
ICON = "Spell_Holy_SealOfWrath",
DURATION = 10
}
},

SPELL = {
Expand Down Expand Up @@ -1107,21 +1127,41 @@ AUF_Debuff = {
["GENERAL"] = {

EFFECT = {
["Sleep"] = { -- Green Whelp Armour
ICON = "Spell_Holy_MindVision",
DURATION = 30,

["Armor Shatter"] = { -- Annihilator
ICON = "INC_Axe_12",
DURATION = 45,
},
["Net-o-Matic"] = { -- Net O Matic
ICON = "INV_Misc_Net_01",

["Net-o-Matic"] = { -- Gnomish Net-o-Matic Projector
ICON = "Ability_Ensnare",
DURATION = 10,
},

["Reckless Charge"] = { -- Rocket Helm
ICON = "INV_Helmet_49",
["Reckless Charge"] = { -- Goblin Rocket Helmet
ICON = "Spell_Nature_AstralRecal",
DURATION = 30,
},

["Sleep"] = { -- Green Whelp Armour
ICON = "Spell_Holy_MindVision",
DURATION = 30,
},

["Spell Vulnerability"] = { -- Nightfall
ICON = "Spell_Holy_ElunesGrace",
DURATION = 5,
},

["Tidal Charm"] = {
ICON = "Spell_Frost_SummonWaterElemental",
DURATION = 3,
},

["Thorium Grenade"] = {
ICON = "Spell_Fire_SelfDestruct",
DURATION = 3,
},
},
},
}