1. Here is some code i was trying to fix, not working correctly for me as its my first attempt at any lua code. Any tips on what i have wrong.

    run function VanishBlind (Unit,Event,Event) if sourceGUID == UnitName("target") then if spellname==("Blind") then CastSpellByName("Vanish(Rank 3)") end end end

  2. You cannot cast spells programatically.