# \[SOLVED\]I need help with yak rampage. please advise

**URL:** https://discourse.codecombat.com/t/solved-i-need-help-with-yak-rampage-please-advise/25760
**Category:** Level Help
**Created:** [November 30, 2020, 10:47pm UTC](https://discourse.codecombat.com/t/solved-i-need-help-with-yak-rampage-please-advise/25760 "2020-11-30T22:47:25Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![\_Codemaster](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/_codemaster/32/26944_2.png) [@\_Codemaster](https://discourse.codecombat.com/u/_Codemaster)
#### Post date: [November 30, 2020, 10:47pm UTC](https://discourse.codecombat.com/t/solved-i-need-help-with-yak-rampage-please-advise/25760/1 "2020-11-30T22:47:25Z")

</div>

this is the main problem:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/3X/e/f/efd3238c4edd5ee62f599b80ddf20b39f1afa8dd.jpeg)  
I freeze and get rushed and it says I’m casting invisibility. this happens immediately after I finish being invisible, and lasts until I get killed. this is my gear:  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/3X/9/4/9499691f3a1f7f8ced2a39d4757cecf6125423da.jpeg)  
my code is here:

```python

while True:
    flag = hero.findFlag("green")

    if flag and hero.isPathClear(hero.pos, flag.pos):
        hero.move(flag.pos)
    elif flag and hero.isReady("jump"):
        hero.jumpTo(flag.pos)
    
    if pet.isReady("shape-shift") and not hero.hasEffect("hide"):
        pet.shapeShift()
    elif hero.isReady("invisibility") and not pet.hasEffect("shape-shift"):
        hero.cast("invisibility", hero)
    elif hero.isReady("phase-shift"):
        hero.phaseShift()
   

```

if anyone can help, that’d be great.

---

<div class="post-metadata">

### Author: ![milton.jinich](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/milton.jinich/32/21419_2.png) [@milton.jinich](https://discourse.codecombat.com/u/milton.jinich)
#### Post date: [November 30, 2020, 10:49pm UTC](https://discourse.codecombat.com/t/solved-i-need-help-with-yak-rampage-please-advise/25760/2 "2020-11-30T22:49:28Z")

</div>

were do you get the hide ability and you don’t need really fancy hero’s I did it with alehandro you just need the blue fox to shape shift nothing else in the sentence just move to the flag not jump

---

<div class="post-metadata">

### Author: ![\_Codemaster](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/_codemaster/32/26944_2.png) [@\_Codemaster](https://discourse.codecombat.com/u/_Codemaster)
#### Post date: [November 30, 2020, 10:54pm UTC](https://discourse.codecombat.com/t/solved-i-need-help-with-yak-rampage-please-advise/25760/3 "2020-11-30T22:54:27Z")

</div>

I tried that, but a flag keeps spawning in a really bad spot, without me placing it. then I fail to get ot it and die. you’ve solved my first problem, but created another.

---

<div class="post-metadata">

### Author: ![milton.jinich](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/milton.jinich/32/21419_2.png) [@milton.jinich](https://discourse.codecombat.com/u/milton.jinich)
#### Post date: [November 30, 2020, 10:54pm UTC](https://discourse.codecombat.com/t/solved-i-need-help-with-yak-rampage-please-advise/25760/4 "2020-11-30T22:54:58Z")

</div>

try and pick up the flag it is a lot faster and smoother

---

<div class="post-metadata">

### Author: ![Code\_Master](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/code_master/32/16184_2.png) [@Code\_Master](https://discourse.codecombat.com/u/Code_Master)
#### Post date: [November 30, 2020, 10:57pm UTC](https://discourse.codecombat.com/t/solved-i-need-help-with-yak-rampage-please-advise/25760/5 "2020-11-30T22:57:45Z")

</div>

```python
    elif hero.isReady("invisibility") and not pet.hasEffect("shape-shift"):
        hero.cast("invisibility", hero)
    elif hero.isReady("phase-shift"):
        hero.phaseShift()

```

change the pet.hasEffect into hero.hasEffect @_Codemaster

---

<div class="post-metadata">

### Author: ![\_Codemaster](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/_codemaster/32/26944_2.png) [@\_Codemaster](https://discourse.codecombat.com/u/_Codemaster)
#### Post date: [November 30, 2020, 10:58pm UTC](https://discourse.codecombat.com/t/solved-i-need-help-with-yak-rampage-please-advise/25760/6 "2020-11-30T22:58:10Z")

</div>

soooooo cloooooooose!  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/3X/0/8/087380a8d2597046087fbcd78b4555f01105fb7c.png)

---

<div class="post-metadata">

### Author: ![Code\_Master](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/code_master/32/16184_2.png) [@Code\_Master](https://discourse.codecombat.com/u/Code_Master)
#### Post date: [November 30, 2020, 10:59pm UTC](https://discourse.codecombat.com/t/solved-i-need-help-with-yak-rampage-please-advise/25760/7 "2020-11-30T22:59:20Z")

</div>

Plus, USE BLINK IT IS THE MOST IMPORTANT THING. (sorry for the caps)

---

<div class="post-metadata">

### Author: ![\_Codemaster](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/_codemaster/32/26944_2.png) [@\_Codemaster](https://discourse.codecombat.com/u/_Codemaster)
#### Post date: [November 30, 2020, 11:01pm UTC](https://discourse.codecombat.com/t/solved-i-need-help-with-yak-rampage-please-advise/25760/8 "2020-11-30T23:01:37Z")

</div>

thank you!!! I used shape shift, invisibility, and the usual flags, and it worked!!!

---

<div class="post-metadata">

### Author: ![milton.jinich](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/milton.jinich/32/21419_2.png) [@milton.jinich](https://discourse.codecombat.com/u/milton.jinich)
#### Post date: [November 30, 2020, 11:36pm UTC](https://discourse.codecombat.com/t/solved-i-need-help-with-yak-rampage-please-advise/25760/9 "2020-11-30T23:36:59Z")

</div>

okay just be careful the bull might hit you with the armor

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/2X/a/a9445509d1a758c41b5ddcddc8c8e20a5dedb67f.png) [@system](https://discourse.codecombat.com/u/system)
#### Post date: [December 1, 2020, 11:37am UTC](https://discourse.codecombat.com/t/solved-i-need-help-with-yak-rampage-please-advise/25760/10 "2020-12-01T11:37:02Z")

</div>

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.
