Hi there. I was getting annoyed by the fact that I couldn't cast what I wanted on the beta because some debuffs would just crash the client, so I decided to write a quick and dirty "fix" to this problem. The problem is basically caused by the UnitDebuff lua function, so what I'm doing is disabling the visibility of units debuffs. The function will just replace the real one with a "trampoline" that won't let the real function get called when the requested unit is your target.
The script doesn't guarantee you not to have any more crash, but it helped me to be able to use all of my spells.
For this script to run, you will have to use the macro posted by _Mike that enables scripts (source (MoP beta - enabling /run /script)):
Code:
/dump (function() RunScript=function(a) loadstring(a)(); end; end)()
Here's the macro code to disable target debuffs:
Code:
/script function fixFunc(a, b, c) if not a == "target" then return oldFunc(a, b, c) end end if oldFunc == nill then oldFunc = UnitDebuff end UnitDebuff = fixFunc
Here's a simple macro to re-enable debuffs without doing a /reload:
Code:
/script UnitDebuff = oldFunc
This will have to be done every time the UI is reloaded.
Have fun, feel free to tell me if I was wrong and this doesn't fix anything for you