|
I tried to SetFocus on somebody in our raid today and got an error about protected function or something
|
This is a known bug in Blizzard's code which affects all addons that use custom unit frames.
There are three ways you can work around this bug...
- Press escape to open the WoW system menu and select the "Key Bindings" option. Scroll down the list until you find the key binding option for setting a focus and bind a key to that function. From then on, you can just target the player you want to set as focus and press the key.
- Target the player you want to set as your focus and type '/focus' and press enter. To remove the current focus, make sure no one is targeted and type '/focus' and press enter. Yo ucan also type '/focus {player name}' to set whichever player you specify as your focus.
- Type '/macro' to open the macro editor and create a new macro whose command is simply '/focus' then save the macro and drag the macro button onto your action bar. You can then just click the button to set the current target to your focus or remove your focus if you don't have a target.