# Zana is very OP in Dueling grounds

**URL:** <https://discourse.codecombat.com/t/zana-is-very-op-in-dueling-grounds/18989>\
**Category:** Uncategorized\
**Created:** [August 12, 2019, 5:05pm UTC](https://discourse.codecombat.com/t/zana-is-very-op-in-dueling-grounds/18989 "2019-08-12T17:05:33Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![Chaboi\_3000](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/chaboi_3000/32/48486_2.png) [@Chaboi\_3000](https://discourse.codecombat.com/u/Chaboi_3000)\
**Post date:** [August 14, 2019, 4:15am UTC](https://discourse.codecombat.com/t/zana-is-very-op-in-dueling-grounds/18989/21 "2019-08-14T04:15:04Z")

</div>

Can you give me the console error message?

---

<div class="post-metadata">

**Author:** ![SuperSmacker](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/supersmacker/32/8385_2.png) [@SuperSmacker](https://discourse.codecombat.com/u/SuperSmacker)\
**Post date:** [August 15, 2019, 1:30am UTC](https://discourse.codecombat.com/t/zana-is-very-op-in-dueling-grounds/18989/22 "2019-08-15T01:30:39Z")

</div>

@Chaboi_3000 console says:  
Non-UserCodeError: TypeError: Cannot read property ‘effects’ of null

Maybe when Zana got released it doesn’t have the effect status coded in or something?

---

<div class="post-metadata">

**Author:** ![brooksy125](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/brooksy125/32/9966_2.png) [@brooksy125](https://discourse.codecombat.com/u/brooksy125)\
**Post date:** [August 15, 2019, 3:06am UTC](https://discourse.codecombat.com/t/zana-is-very-op-in-dueling-grounds/18989/23 "2019-08-15T03:06:44Z")

</div>

Whose code is it? My guess is that they might have a check for hasEffect but their variable assigned to the enemy hero is in the loop and is null. So when the enemy hero goes invisible the enemy can’t be found and the hasEffect method has nothing to check. Your code is not in an infinite loop, but their code locks up which sometimes stops your code which seems like an infinite loop on your end.

---

<div class="post-metadata">

**Author:** ![SuperSmacker](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/supersmacker/32/8385_2.png) [@SuperSmacker](https://discourse.codecombat.com/u/SuperSmacker)\
**Post date:** [August 17, 2019, 9:00pm UTC](https://discourse.codecombat.com/t/zana-is-very-op-in-dueling-grounds/18989/24 "2019-08-17T21:00:51Z")

</div>

Hm okay.

CodeCombat really needs to fix that then, because the enemy player would be able to stop me from using invisibility against them even though it’s their code that has a fault.

---

<div class="post-metadata">

**Author:** ![Chaboi\_3000](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/chaboi_3000/32/48486_2.png) [@Chaboi\_3000](https://discourse.codecombat.com/u/Chaboi_3000)\
**Post date:** [November 29, 2019, 7:52am UTC](https://discourse.codecombat.com/t/zana-is-very-op-in-dueling-grounds/18989/25 "2019-11-29T07:52:34Z")

</div>

I forgot to add a function for hasEffect for one of the moves. Can you try again and see if it works now?

---

<div class="post-metadata">

**Author:** ![herokolbert](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/herokolbert/32/34618_2.png) [@herokolbert](https://discourse.codecombat.com/u/herokolbert)\
**Post date:** [January 13, 2022, 10:40pm UTC](https://discourse.codecombat.com/t/zana-is-very-op-in-dueling-grounds/18989/26 "2022-01-13T22:40:06Z")

</div>

one thing superSmacker, you can also do `hero.cast("invisibility", self)`

---

<div class="post-metadata">

**Author:** ![cheddarcheese](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/cheddarcheese/32/22417_2.png) [@cheddarcheese](https://discourse.codecombat.com/u/cheddarcheese)\
**Post date:** [January 15, 2022, 6:13pm UTC](https://discourse.codecombat.com/t/zana-is-very-op-in-dueling-grounds/18989/27 "2022-01-15T18:13:12Z")

</div>

Hey i appreciate that your trying to help him and/or give him a tip but this topic was from two years ago and considered dead also supersmacker is probably not even using this anymore so please dont do this next time.

CheddarCheese

---

<div class="post-metadata">

**Author:** ![herokolbert](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/herokolbert/32/34618_2.png) [@herokolbert](https://discourse.codecombat.com/u/herokolbert)\
**Post date:** [January 17, 2022, 6:35pm UTC](https://discourse.codecombat.com/t/zana-is-very-op-in-dueling-grounds/18989/28 "2022-01-17T18:35:06Z")

</div>

gah okay 20 charssssssssssssssss

[Previous page](https://discourse.codecombat.com/t/zana-is-very-op-in-dueling-grounds/18989.md?page=1)
