If you only do the check once like the image above then the very last consume souldnt be a problem. If there are no other branches checking the available mana then right know I think this is your main issue.
This is all taking into consideration the start value of mana is 100.0 and the skill costs 20.0.