-
Member
Spell reflection wotlk
Hi, anyone has working spell reflection script for wotlk? this doesnt work it seems.
if macros["spellreflect"]
and cdRemains(23920) > 4
and not UnitBuffID("player", 23920) then
ResetMacros()
MacroStatusFrameUpdate()
if not IsTwoHanderEquiped() then
EquipTwoHander()
end
end
if cdRemains(23920) == 0
and macros["spellreflect"] then
local t = StringSplicer(GetCVar("SRtargs"))
for i=0,#t do
local SRTarget = t[i]
if SRTarget == "debug"
and rage >= 10 then
if not IsOneHandAndShieldEquiped() then
EquipOneHandAndShield()
end
_castSpell(23920)
end
if UnitExists(SRTarget )
and UnitCanAttack("player", SRTarget ) ~= nil
and UnitCastingInfo(SRTarget)
and rage >= 10 then
local castName,_,_,_,castStartTime,castEndTime,_,_,castNotInterruptable = UnitCastingInfo(SRTarget)
local timeSinceStart = (GetTime() * 1000 - castStartTime) / 1000
local castTime = castEndTime - castStartTime
local currentPercent = timeSinceStart / castTime * 100000
if currentPercent >= 70 then
if not IsOneHandAndShieldEquiped() then
EquipOneHandAndShield()
end
_castSpell(23920)
end
end
end
end
-
Member
Did you checked that functions like EquipOneHandAndShield // IsOneHandAndShieldEquiped // have the correct weapons writed in ?
-
Banned
i'm gonna test it tommorow to see the prob.
-
Post Thanks / Like - 1 Thanks
ilexpit (1 members gave Thanks to BloodMagic for this useful post)