Originally Posted by Xrystal
A quick look and there is no validation that UnitID exists or is valid prior to using it ..
UnitDebuff(unit,index) is required .. you have UnitDebuff(UnitID,GHOST)
I assume GHOST is a valid index number, if not you might want to check that as well.
Which means UnitID must be nil or invalid and thus causing an error when attempting to use it.
It might not be the reason but if you haven't checked it out it might be worth doing.
|
Thank you very much, now I just need to find some dead people to test it on lol.