Last active
April 12, 2020 18:34
-
-
Save riftrsps/e9cc05599b44a5ea89397e46009e84be to your computer and use it in GitHub Desktop.
Clean up, keeping semantics the same
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static boolean cannotActivateNewSkillingEvent(Player player) { | |
if (player.forceStopSkillingEvent && player.isUsingSkillingEvent) { | |
player.forceStopSkillingEvent = false; | |
return true; | |
} | |
if (player.isUsingSkillingEvent) { | |
return true; | |
} | |
player.forceStopSkillingEvent = false; | |
player.isUsingSkillingEvent = true; | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment