LF arena profile or bg. with spell reflection etc. tryed bubba and nova arms pvp nothing works...
Code:
if PQ_SpellReflect == false then
return false
end
local ReflectID = {
5782, -- Fear
33786, -- Cyclone
28272, -- Pig Poly
118, -- Sheep Poly
61305, -- Cat Poly
61721, -- Rabbit Poly
61780, -- Turkey Poly
28271, -- Turtle Poly
51514, -- Hex
51505, -- Lava Burst
339, -- Entangling Roots
30451, -- Acrane Blast
605 -- Mind Control
}
local CastingTarget = nil
local srCD = select(2, GetSpellCooldown(23920))
-- Only try this bit of code if we have enough rage to cast Spell Reflection
if UnitPower("player") > 15 then
for _, reflectID in ipairs(ReflectID) do
-- Checking Arena Target Frames 1-5
for i=1, 5 do
local aTarget = "arena"..tostring(i)
local ainRange = IsSpellInRange(GetSpellInfo(57755), aTarget)
if UnitExists(aTarget) and ainRange == 1 then
if UnitCastingInfo(aTarget) == GetSpellInfo(reflectID) then
local _, _, _, _, astartTimer, aendTimer = UnitCastingInfo(aTarget)
if srCD == 0 or UnitBuffID("player", 23920) then
local stance = GetShapeshiftForm()
if PercentCasted(astartTimer, aendTimer) >= 70 then
if stance == 1 or stance == 2 then
spellReflect = 1
CastingTarget = aTarget
else
CastSpellByID(2457, "player")
spellReflect = 1
CastingTarget = aTarget
end
end
end
end
end
end
end
--Checking Focus Target Unitframe now
local finRange = IsSpellInRange(GetSpellInfo(57755), "focus")
if UnitExists("focus") and finRange == 1 then
if UnitCastingInfo("focus") == GetSpellInfo(reflectID) then
local _, _, _, _, fstartTimer, fendTimer = UnitCastingInfo("focus")
if srCD == 0 or UnitBuffID("player", 23920) then
local stance = GetShapeshiftForm()
if UnitPower("player") > 15 and PercentCasted(fstartTimer, fendTimer) >= 70 then
if stance == 1 or stance == 2 then
spellReflect = 1
CastingTarget = "focus"
else
CastSpellByID(2457, "player")
spellReflect = 1
CastingTarget = "focus"
end
end
end
end
end
local tinRange = IsSpellInRange(GetSpellInfo(57755), "target")
if UnitExists("target") and tinRange then
if UnitCastingInfo("target") == GetSpellInfo(reflectID) then
local _, _, _, _, tstartTimer, tendTimer= UnitCastingInfo("target")
if srCD == 0 or UnitBuffID("player", 23920) then
local stance = GetShapeshiftForm()
local _, _, _, _, tstartTimer, tendTimer = UnitCastingInfo("target")
if UnitPower("player") > 15 and PercentCasted(tstartTimer, tendTimer) >= 70 then
if stance == 1 or stance == 2 then
print("NOW!!!!!")
spellReflect = 1
CastingTarget = "target"
else
CastSpellByID(2457, "player")
spellReflect = 1
CastingTarget = "target"
end
end
end
end
end
end
if spellReflect == 1 and CastingTarget then
if IsEquippedItemType("Shields") then
if UnitBuffID("player", 23920) and UnitCastingInfo(CastingTarget) then
return true
elseif not UnitCastingInfo(CastingTarget) then
spellReflect = nil
RunMacroText("/equip Axe of the Tauren Chieftains")
return true
elseif UnitCastingInfo(CastingTarget) then
CastSpellByID(23920, "player")
return true
end
elseif not IsEquippedItemType("Shields") then
if UnitCastingInfo(CastingTarget) then
RunMacroText("/equip Souldrinker")
RunMacroText("/equip Currapted Carapace")
return true
elseif not UnitCastingInfo(CastingTarget) then
spellReflect = nil
end
end
elseif IsEquippedItemType("Shields") then
spellReflect = nil
RunMacroText("/equip Axe of the Tauren Chieftains")
return true
end
other one bubba's
Code:
local DS = GetShapeshiftForm()
local Disarm = UnitDebuffID("target", 676)
local Spell,_,_,_,_,_,_,_,_ = UnitCastingInfo("target")
local CD = GetSpellCooldown(23920)
local AW = UnitBuffID("target", 31884)
local UF = UnitBuffID("target", 49016)
local B = UnitBuffID("target", 18499)
local BL = UnitBuffID("target", 2825)
local H = UnitBuffID("target", 32182)
local SD = UnitBuffID("target", 51713)
local PoF = UnitBuffID("target", 51271)
local BF1 = UnitBuffID("target", 33702)
local BF2 = UnitBuffID("target", 20572)
local BF3 = UnitBuffID("target", 33697)
local CoV = UnitBuffID("target", 99740)
local R = UnitBuffID("target", 1719)
local BS = UnitBuffID("target", 46924)
local IV = UnitBuffID("target", 12472)
if AW ~= nil or UF ~= nil or B ~= nil or BL ~= nil or H ~= nil or SD ~= nil or PoF ~= nil or BF1 ~= nil or BF2 ~= nil or BF3~= nil or CoV ~= nil or R ~= nil or BS ~= nil or IV ~= nil then
if DS ~= 2 and Disarm == nil then
return true
end
end
if Spell == ("Arcane Blast") or Spell == ("Cyclone") or Spell == ("Mind Control") or Spell == ("Polymorph") or Spell == ("Lava Burst") or Spell == ("Entangling Roots") or Spell == ("Hex") then
if DS ~= 2 and CD == 0 then
RunMacroText("/equip Souldrinker")
RunMacroText("/equip Corrupted Carpace")
return true
end
end
local DS = GetShapeshiftForm()
if DS ~= 1 then
RunMacroText("/equip Axe of the Tauren Chieftains")
return true
end