Originally Posted by
bu_ba_911
since i got a good review on my Spell Reflect code, here's the Disarm code that should go along with it..... This one has even more of a chance of being buggy than Spell Reflect
Spell Name: Disarm
Spell ID: 676
Target: Custom
LUA Code:
Code:
local DisarmDebuffs = {31884, 59016, 18499, 2825, 32182, 2825, 32182, 51713, 51271, 33702, 20572, 33697, 99740, 1719, 46924, 12472 }
local DisarmCD = GetSpellCooldown(676)
local stance = GetShapeshiftForm()
if DisarmCD == 0 then
for _, v in ipairs(DisarmDebuffs) do
for i = 1, 5 do
local aTarget = "arena"..tostring(i)
local ainRange = IsSpellInRange(676, aTarget)
if UnitExists(aTarget) and ainRange == 1 then
if UnitBuffID(aTarget, v) then
if stance == 2 then
PQR_CustomTarget = aTarget
return true
else
CastSpellByID(71, "player")
return true
end
end
end
end
local tinRange = IsSpellInRange(676, "target")
if UnitExists("target") and tinRange == 1 then
if UnitBuffID("target", v) then
if stance == 2 then
PQR_CustomTarget = "target"
return true
else
CastSpellByID(71, "player")
return true
end
end
end
local finRange = IsSpellInRange(676, "focus")
if UnitExists("target") and finRange == 1 then
if UnitBuffID("focus", v) then
if stance == 2 then
PQR_CustomTarget = "focus"
return true
else
CastSpellByID(71, "player")
return true
end
end
end
end
elseif stance == 2 then
if select(5, GetTalentTabInfo(3)) < select(5, GetTalentTabInfo(1)) then
CastSpellByID(2457, "player")
return false
end
end
*edit*
will anyone be able to test this and let me know if it worked or not?
Im gonna test your spell reflect and disarm.
Spell reflect first. Can you make Spellreflect check if pummel is ready before it spell reflects? I uses this pummel:
Code:
local buff = { 118,116,61305,28271,28272,61780,61721,2637,33786,5185,8936,50464,19750,82326,2061,9484,605,8129,331,8004,51505,403,77472,51514,5782,1120,48181,30108 }
local castingSpell, _, _, _, _, endTime = UnitCastingInfo("target")
for i,v in ipairs(buff) do
if IsSpellInRange("Pummel", "target") == 1 and PQR_IsOutOfSight("target") == false and castingSpell == GetSpellInfo(v) and endTime/1000 - GetTime() < 0.5 then
if not UnitBuffID("target", 31821) and not UnitBuffID("target", 89485) then
return true
end
end
end
I would like that it would pummel if a mage eg is sheeping me. And lets my pummel gets faked, it will spellreflect because pummel is on CD. But it should only do that if im on the mage and near him. It should still spellreflect if im on a priest and a mage is my focus target and he is sheeping me. I hope you understand me
eles PM me.
And the disarm, does it check if my war is in range of the target? Coz the old disarm keeps stance dancing if the target is out of range.
Last thing, do I still need PvP Arms: Reflect Check in the rotation for the new spell reflect to work?
And is the new spellreflect like this:
Spell Name: PvP Arms: Spell Reflect
Spell ID: 23920
Target: Custom?????
delay: xxx ?????
EDIT: last thing 
with the new spellreflect and disarm code, do i still need PvP Arms: Change to DS and PvP Arms: Change to BS?