Let's say that we have Malamar with Contrary that gets burned by Will-O-Wisp.Would Malamar gain or lose Attack?
It only works with actual stat changes such as Swords Dance and Shell Smash but a status condition directly affects the stat without actually displaying a boost.