Small incompatibility issue with two scripts (Solved)

I have two scripts by Galv: jumping ability and superman ability.
There's a small visual bug that happens when you have two of those scripts installed, that I would like to get rid of.
Here are two pictures to illustrate the issue:
.
I think I found the cause of this, but since I don't know much about scripting, I don't know what I should do next.
In the jumping script there's this line:
Spoiler
@priority_type = 1 if !jumping?
The priority should be set to 2 if the player is flying, so that they are above everything on the map. But because of this line, their priority is always set to 1 if they're not jumping.
I'd really apprieciate some help.

I've moved this thread to RGSSx Script Support. Thank you.

Have you tried changing the order of the scripts in the editor? (i.e. put the jump script below the fly script and then the fly script below the jump script)
Might be as simple as changing the line you pointed out to
Code:
@priority_type = 1 if !jumping? && @altitude <= 0
I changed the script like you told me to and it works! Thank you a lot, KK20.
I actually tried doing something like that before, but instead of @altitude <= 0, I wrote !flying? , but that resulted in an error. But like I said, I don't know much about scripts. If it weren't for your help, I'd probably still struggle with it, so I'm very thankful.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/small-incompatibility-issue-with-two-scripts-solved.107900/