# Ironjaw this.action on jump changes too quickly

**URL:** <https://discourse.codecombat.com/t/ironjaw-this-action-on-jump-changes-too-quickly/926>\
**Category:** Bugs\
**Created:** [June 20, 2014, 12:07am UTC](https://discourse.codecombat.com/t/ironjaw-this-action-on-jump-changes-too-quickly/926 "2014-06-20T00:07:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![darksteel](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@darksteel](https://discourse.codecombat.com/u/darksteel)\
**Post date:** [June 20, 2014, 12:07am UTC](https://discourse.codecombat.com/t/ironjaw-this-action-on-jump-changes-too-quickly/926/1 "2014-06-20T00:07:43Z")

</div>

When Ironjaw jumps, his action changes to jump, but only briefly. His action should remain jump the entire duration of the ability.

In the game I saw the error, he jumped at 5.s, landed at ~6.1s. I could see the action was jump until 5.3s, at which point it changed to move. At 5.5s I terrified him, and he was terrified when he landed.

Opponent id for reference: 532a67a72042708b711a663e

---

<div class="post-metadata">

**Author:** ![darksteel](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@darksteel](https://discourse.codecombat.com/u/darksteel)\
**Post date:** [June 20, 2014, 8:17am UTC](https://discourse.codecombat.com/t/ironjaw-this-action-on-jump-changes-too-quickly/926/2 "2014-06-20T08:17:27Z")

</div>

I have a similar issue where Ironjaw gets bugged and infinitely casts jump. In this game, he cast jump relatively early on. My code is assuming that the Ironjaw will stop casting jump at some point (next couple of seconds), but he never does.

id for reference: 535080c3da7031b3060fdf73

---

<div class="post-metadata">

**Author:** ![nick](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/nick/32/784_2.png) [@nick](https://discourse.codecombat.com/u/nick)\
**Post date:** [June 21, 2014, 1:02am UTC](https://discourse.codecombat.com/t/ironjaw-this-action-on-jump-changes-too-quickly/926/3 "2014-06-21T01:02:26Z")

</div>

The jump cooldown does end partway through the jump, so he can attack in midair if he wants.

In the code I see against that player, it seems that he’s not infinitely trying to jump–he’s just not doing anything besides jumping if his jump cooldown is 0, so when he’s done jumping, he just stands there. (Unless you have changed your code since?)

---

<div class="post-metadata">

**Author:** ![darksteel](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@darksteel](https://discourse.codecombat.com/u/darksteel)\
**Post date:** [June 22, 2014, 7:25pm UTC](https://discourse.codecombat.com/t/ironjaw-this-action-on-jump-changes-too-quickly/926/4 "2014-06-22T19:25:47Z")

</div>

Okay, the first bug is fine then if it’s expected behaviour. As for the second one, it’s still a problem for me.

I tried a test with the following code:

```
if(this.enemyHero && this.enemyHero.action) {
    this.say(this.now() + this.enemyHero.action);
    return;
}

```

I added it to see if the game could detect he was not always jumping. I always got jump, and it updated every 0.1s. My hero code only saw him jumping. The only instance he stopped the jump action was when he got terrified, but if I never terrified I only saw the jump action, as indicated by the code above.
