Talk:Improved expertise

"A character with this feat can make defensive attacks, gaining a +10 bonus to AC but receiving a â€“10 penalty to Attack Rolls".

Does this AC bonus apply only while attacking another or do you get it while just doing nothing?