Agility decides who can act first in battle, and if you have way more than the opponent, you get to act twice before he gets an action.Luck decreases the chance of receiving negative status effects (if they don't have a certain hit chance).
Does luck also increase the chance of inflicting them?
No.