Magical Fortune( Complete Scoundrel, p. 79)
Even you are sometimes surprised by how well your spells work.
You can expend one luck reroll as a swift action to reroll the damage dealt by a spell you have just cast. You can expend two luck rerolls as a swift action to reroll a caster level check. You gain one luck reroll per day.