This reminds me of a certain something in Undertale :') Now I know that it could work well as a general combat mechanics, good job!