I would assume that it only is calculated after then ability is used to trigger its effect.
You use the attack and then a variable is check for mana Cost => 10 then (code) sort of system, and it doesn't check the man's cost constantly.
That's my assumption at least. Good way to test is just go hit something and see if the damage is higher.