<commit_before>//////////////////////////////////////////////////////////////////////////
//
// SneezyMUD - All rights reserved, SneezyMUD Coding Team
//
//////////////////////////////////////////////////////////////////////////


#include "stdsneezy.h"
#include "combat.h"
#include "disc_monk.h"
#include "disc_cures.h"
#include "disc_aegis.h"
#include "obj_light.h"


int TBeing::doLeap(const sstring &arg)
{
  int rc;

  if (checkBusy()) {
    return FALSE;
  }
  
  if(fight()){
    sendTo("You can't leap away while fighting!\n\r");
    return FALSE;
  }

  if (!doesKnowSkill(SKILL_CATLEAP)) {
    sendTo("You do not know the secrets of cat-like leaping.\n\r");
    return FALSE;
  }

  if(roomp->isFallSector()){
    sendTo("There's no ground beneath you to leap off of here!\n\r");
    return FALSE;
  }

  dirTypeT dir=getDirFromChar(arg);
  if(!exitDir(dir)){
    sendTo("You can't go that way.\n\r");
    return FALSE;
  }


  bool was_flying=IS_SET(specials.affectedBy, AFF_FLYING);
<commit_msg>added movement check in catleap<commit_after>//////////////////////////////////////////////////////////////////////////
//
// SneezyMUD - All rights reserved, SneezyMUD Coding Team
//
//////////////////////////////////////////////////////////////////////////


#include "stdsneezy.h"
#include "combat.h"
#include "disc_monk.h"
#include "disc_cures.h"
#include "disc_aegis.h"
#include "obj_light.h"


int TBeing::doLeap(const sstring &arg)
{
  int rc;

  if (checkBusy()) {
    return FALSE;
  }
  
  if(fight()){
    sendTo("You can't leap away while fighting!\n\r");
    return FALSE;
  }

  if (!doesKnowSkill(SKILL_CATLEAP)) {
    sendTo("You do not know the secrets of cat-like leaping.\n\r");
    return FALSE;
  }

  if(roomp->isFallSector()){
    sendTo("There's no ground beneath you to leap off of here!\n\r");
    return FALSE;
  }

  if(getMove() < 15){
    sendTo("You're too tired to be jumping around.\n\r");
    return FALSE;
  }

  dirTypeT dir=getDirFromChar(arg);
  if(!exitDir(dir)){
    sendTo("You can't go that way.\n\r");
    return FALSE;
  }


  bool was_flying=IS_SET(specials.affectedBy, AFF_FLYING);

{'fraction_non_alphanumeric': 0.26557377049180325, 'fraction_numerical': 0.000936768149882904, 'mean_word_length': 1.9915966386554622, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '608611', 'n_tokens_mistral': 763, 'n_tokens_neox': 710, 'n_words': 171}