Replaced #define min by Lua min
Change: added mana regeneration

Mana regeneration is now 10% of max mana per hour.