Made the character agility decrease slightly in battles when their map stamina is low.

Also polished a bit more the map status effect code.

Closes #289