Thread: ReadySpells
View Single Post
05-30-07, 02:39 PM   #5
Astryl
A Defias Bandit
AddOn Author - Click to view addons
Join Date: Dec 2005
Posts: 2
Actually, in case anyone else wants to try it, here's what I've got currently. I haven't raided with this, or farmed more than a few mobs, so no garuntees that it works right...

local watchSpells = {
{"Faerie Fire (Feral)"},
{"Mangle (Cat)", "Maul"},
{"Shred", "Mangle (Bear)"},
{"Ferocious Bite", "Rip", "Lacerate", "Swipe"},
{"Feral Charge", "Growl"},
{"Demoralizing Roar", "Prowl"}
}






if spellName == "Faerie Fire" then
if self:IsUnitDebuffUp("target", "Faerie Fire") then
failCode = 101
end
elseif spellName == "Faerie Fire (Feral)" then
if self:IsUnitDebuffUp("target", "Faerie Fire (Feral)") then
failCode = 102
end
elseif spellName == "Barkskin" then
if not InCombatLockdown() then
failCode = 103
end
elseif spellName == "War Stomp" then
if not InCombatLockdown() then
failCode = 104
end
elseif spellName == "Rake" then
if self:IsUnitDebuffUp("target", "Rake") then
failCode = 105
end
elseif spellName == "Cower" then
if (GetNumPartyMembers() == 0 and GetNumRaidMembers() == 0) or UnitIsPlayer("target") then
failCode = 106
end
elseif spellName == "Growl" then
if (GetNumPartyMembers() == 0 and GetNumRaidMembers() == 0) or UnitIsPlayer("target") then
failCode = 107
end
elseif spellName == "Mangle (Cat)" then
if (GetNumPartyMembers() > 0 or GetNumRaidMembers() > 0) and self:IsUnitDebuffUp("target", "Mangle") then
failCode = 108
end
elseif spellName == "Maul" then
if UnitMana("player")<50 then
failCode = 109
end
elseif spellName == "Demoralizing Roar" then
if self:IsUnitDebuffUp("target", "Demoralizing Roar") or self:IsUnitDebuffUp("target", "Demoralizing Shout") or self:IsUnitDebuffUp("target", "Curse of Weakness") then
failCode = 110
end
elseif spellName == "Ferocious Bite" then
if GetComboPoints() < 4 then
failCode = 111
end
elseif spellName == "Rip" then
if GetComboPoints() < 4 then
failCode = 112
end
elseif spellName == "Lacerate" then
if (GetNumPartyMembers() == 0 and GetNumRaidMembers() == 0) then
failCode = 113
end
elseif spellName == "Swipe" then
if (GetNumPartyMembers() > 0 or GetNumRaidMembers() > 0) then
failCode = 113
end
end
  Reply With Quote