# Sorcerer's Blitz: How can I find the default AI for a unit?

**URL:** <https://discourse.codecombat.com/t/sorcerers-blitz-how-can-i-find-the-default-ai-for-a-unit/30238>\
**Category:** Level Help\
**Created:** [August 29, 2021, 10:36pm UTC](https://discourse.codecombat.com/t/sorcerers-blitz-how-can-i-find-the-default-ai-for-a-unit/30238 "2021-08-29T22:36:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![SamuelB](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@SamuelB](https://discourse.codecombat.com/u/SamuelB)\
**Post date:** [August 29, 2021, 10:36pm UTC](https://discourse.codecombat.com/t/sorcerers-blitz-how-can-i-find-the-default-ai-for-a-unit/30238/1 "2021-08-29T22:36:53Z")

</div>

Hi! I know `hero.on("spawn-type", fn)` can be used to change the AI for a particular unit, but how can I find out what the default AI looks like? For example, how does the merger unit behave by default and how could I find the code for that?

PS: I’ve tried copying the code from the second hints page, but this AI seems different from the default AI (the end result of the round is different).

---

<div class="post-metadata">

**Author:** ![moonwatcher348](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/moonwatcher348/32/24126_2.png) [@moonwatcher348](https://discourse.codecombat.com/u/moonwatcher348)\
**Post date:** [August 29, 2021, 11:05pm UTC](https://discourse.codecombat.com/t/sorcerers-blitz-how-can-i-find-the-default-ai-for-a-unit/30238/2 "2021-08-29T23:05:26Z")

</div>

Go to [CodeCombat - Coding games to learn Python and JavaScript](https://codecombat.com/editor/level/sorcerers-blitz) and then go into the code and search, or you could also ask the creator of it…

---

<div class="post-metadata">

**Author:** ![moonwatcher348](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/moonwatcher348/32/24126_2.png) [@moonwatcher348](https://discourse.codecombat.com/u/moonwatcher348)\
**Post date:** [August 29, 2021, 11:06pm UTC](https://discourse.codecombat.com/t/sorcerers-blitz-how-can-i-find-the-default-ai-for-a-unit/30238/3 "2021-08-29T23:06:13Z")

</div>

Oh, nvm, you can’t access it… hmmm, you have to ask a moderator/creator of the level.

---

<div class="post-metadata">

**Author:** ![SamuelB](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@SamuelB](https://discourse.codecombat.com/u/SamuelB)\
**Post date:** [August 29, 2021, 11:12pm UTC](https://discourse.codecombat.com/t/sorcerers-blitz-how-can-i-find-the-default-ai-for-a-unit/30238/5 "2021-08-29T23:12:33Z")

</div>

My bad, I didn’t realise there was a category for Sorcerer’s Blitz, I’ll change it.

---

<div class="post-metadata">

**Author:** ![moonwatcher348](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/moonwatcher348/32/24126_2.png) [@moonwatcher348](https://discourse.codecombat.com/u/moonwatcher348)\
**Post date:** [August 29, 2021, 11:15pm UTC](https://discourse.codecombat.com/t/sorcerers-blitz-how-can-i-find-the-default-ai-for-a-unit/30238/6 "2021-08-29T23:15:08Z")

</div>

Its not really a category for arenas, but arenas are still levels and that part of the forums gets the most attention I think.

---

<div class="post-metadata">

**Author:** ![enPointe77](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/enpointe77/32/43632_2.png) [@enPointe77](https://discourse.codecombat.com/u/enPointe77)\
**Post date:** [August 30, 2021, 12:26am UTC](https://discourse.codecombat.com/t/sorcerers-blitz-how-can-i-find-the-default-ai-for-a-unit/30238/7 "2021-08-30T00:26:47Z")

</div>

Lol. I’m fine getting notifications.

---

<div class="post-metadata">

**Author:** ![moonwatcher348](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/moonwatcher348/32/24126_2.png) [@moonwatcher348](https://discourse.codecombat.com/u/moonwatcher348)\
**Post date:** [August 30, 2021, 12:28am UTC](https://discourse.codecombat.com/t/sorcerers-blitz-how-can-i-find-the-default-ai-for-a-unit/30238/8 "2021-08-30T00:28:12Z")

</div>

Yeah, but like, that many? (also, we probably should not talk about this here…)
