Skip to content

Instantly share code, notes, and snippets.

@riftrsps
Last active April 12, 2020 18:34
Show Gist options
  • Save riftrsps/e9cc05599b44a5ea89397e46009e84be to your computer and use it in GitHub Desktop.
Save riftrsps/e9cc05599b44a5ea89397e46009e84be to your computer and use it in GitHub Desktop.
Clean up, keeping semantics the same
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