Originally Posted by
Mavmins
thats Nerder thats some handy code.
The problem is I only want to interrupt or purge REALLY important stuff, otherwise im losing a GCD casting it and only certain spells absolutley have to be interrupted or buffs purged. So I may as well check the specific spell casts.
@Sivers - I can't reproduce that error. Which options have you got enabled in PQInterface ?
Code:
if IsInRaid() then
person = "raid"
elseif IsInGroup() then
person = "party"
end
for i = 1, 4 do
local bossUnit = "boss"..i
if UnitExists(bossUnit) then
for m = 1, GetNumGroupMembers() do
for d = 1, 40 do
if select(9, UnitDebuff(person..m, d)) == 1 then
PQR_CustomTarget = person..m
CastSpellByName(GetSpellInfo(370), PQR_CustomTarget)
end
if select(9, UnitBuff("target", d)) == 1 then
CastSpellByName(GetSpellInfo(370), "target")
elseif select(9, UnitBuff(bossUnit, d)) == 1 then
CastSpellByName(GetSpellInfo(370), bossUnit)
end
end
end
if ( select(9, UnitCastingInfo("target")) == false
or select(8, UnitChannelInfo("target")) == false ) then
CastSpellByName(GetSpellInfo(57994), "target")
elseif ( select(9, UnitCastingInfo(bossUnit)) == false
or select(8, UnitChannelInfo(bossUnit)) == false ) then
CastSpellByName(GetSpellInfo(57994), bossUnit)
end
end
end