How it works
A Fire-type move hitting the holder is nullified and grants Fire Boost. The boost remains even if the holder then Mega Evolves.
In battle
In singles, bring in a Flash Fire user when you can read a Fire attack. With Heatran, consider whether it can activate the boost safely before it Mega Evolves. In doubles, account for Ground coverage from both foes.