# Infernal King 'Immortal' trait activating whilst stunned

**URL:** <https://community.gemsofwar.com/t/infernal-king-immortal-trait-activating-whilst-stunned/11651>\
**Category:** Support\
**Created:** [August 30, 2016, 2:26pm UTC](https://community.gemsofwar.com/t/infernal-king-immortal-trait-activating-whilst-stunned/11651 "2016-08-30T14:26:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chknsndwch](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/chknsndwch/32/18875_2.png) [@chknsndwch](https://community.gemsofwar.com/u/chknsndwch)\
**Post date:** [August 30, 2016, 2:26pm UTC](https://community.gemsofwar.com/t/infernal-king-immortal-trait-activating-whilst-stunned/11651/1 "2016-08-30T14:26:18Z")

</div>

**What you were expecting to happen, and what actually happened?**

Stunned Infernal King’s third trait ‘Immortal’ should not have triggered due to him being stunned. He was killed by a spell so he didn’t have chance to recover but resurrected anyway.

**What are the steps to make it happen again?**

Stun and then kill a triple traited Infernal King and see if it activates.

**Do you have any screenshots or video you want to share with us so we can see the problem? Attach them to your post!**

I do not.

While we’re at it, Gloom Leaf’s third trait ‘Thorns’ reads “Reflects 50% of skull damage” but when he’s is low health, i.e. 1hp, he’ll still deal 1/2 of the attackers attack back to him despite the actual ‘skull damage’ only being 1.

---

<div class="post-metadata">

**Author:** ![Dorgath](https://avatars.discourse-cdn.com/v4/letter/d/dfb087/32.png) [@Dorgath](https://community.gemsofwar.com/u/Dorgath)\
**Post date:** [August 30, 2016, 4:03pm UTC](https://community.gemsofwar.com/t/infernal-king-immortal-trait-activating-whilst-stunned/11651/2 "2016-08-30T16:03:27Z")

</div>

Known (10cc)

> [@Mufasha](#):
>
> death effects being immune to stun intentional?

[quote=Sirrian]No, not intentional, just a by-product of the way the code handles a troop being killed.The proc order, when a unit dies, is:

- Unit is marked as dead
- Status effects are cleaned up
- On-Death effects activate

Obviously we need to switch around those last two.In a perfect codebase that’s a one-line change… we’ll see how perfect our codebase is when we try to change it![/quote]
