# Game crash when Harpy Mage summon Bladewing while dying. (rare bug)

**URL:** <https://community.gemsofwar.com/t/game-crash-when-harpy-mage-summon-bladewing-while-dying-rare-bug/70818>\
**Category:** Bug Reports\
**Created:** [July 7, 2021, 1:23am UTC](https://community.gemsofwar.com/t/game-crash-when-harpy-mage-summon-bladewing-while-dying-rare-bug/70818 "2021-07-07T01:23:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![HagureShinma](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/hagureshinma/32/69779_2.png) [@HagureShinma](https://community.gemsofwar.com/u/HagureShinma)\
**Post date:** [July 7, 2021, 1:23am UTC](https://community.gemsofwar.com/t/game-crash-when-harpy-mage-summon-bladewing-while-dying-rare-bug/70818/1 "2021-07-07T01:23:13Z")

</div>

\*\* **Platform, device version and operating system** \*\*  
Steam, PC, Windows 10

**Screenshot or image**

> **[Screenshot](https://prnt.sc/1954li7)**
>
> Captured with Lightshot

**What you were expecting to happen, and what actually happened**  
Finish a explore battle in Suncrest but the game freezes.

**How often does this happen? When did it begin happening?**  
It happens consistenly every time devouring a troop with Vash dagon to kill Harpy Mage (as the last troop in the enemy team) and her trait “Deadly Flock” activates.

**Steps to make it happen again**  
I’m using this team [1056,6256,6650,6700,3026,2,1,2,3,2,3,2,14012] i usualy end a match devouring my Irongut with Vash Dagon, but this sometimes activates Harpy mage sumoning trait “Deadly Flock” causing the game to completelly freeze.

---

<div class="post-metadata">

**Author:** ![Nullings](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/nullings/32/39207_2.png) [@Nullings](https://community.gemsofwar.com/u/Nullings)\
**Post date:** [July 7, 2021, 4:59am UTC](https://community.gemsofwar.com/t/game-crash-when-harpy-mage-summon-bladewing-while-dying-rare-bug/70818/2 "2021-07-07T04:59:35Z")

</div>

A curious thing that I tried to reproduce under Android. I got “Deadly Flock” worked on HKI devouring, Bladewing appeared in the first slot, then both Bladewing and Harpy Mage were killed by Vash’Dagon. Another case: Harpy Mage was too healthy, so after Bladewing appearing and Vash’Dagon’s true damage dealing Harpy Mage survived. No freezes were detected.

---

<div class="post-metadata">

**Author:** ![Sytro](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@Sytro](https://community.gemsofwar.com/u/Sytro)\
**Post date:** [July 7, 2021, 8:03am UTC](https://community.gemsofwar.com/t/game-crash-when-harpy-mage-summon-bladewing-while-dying-rare-bug/70818/3 "2021-07-07T08:03:34Z")

</div>

Wondering if that’s not similiar to what happened in past to Vash’Dagon and Arachnean Weaver combo… there were also game freezes there…

---

<div class="post-metadata">

**Author:** ![HagureShinma](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/hagureshinma/32/69779_2.png) [@HagureShinma](https://community.gemsofwar.com/u/HagureShinma)\
**Post date:** [July 7, 2021, 2:35pm UTC](https://community.gemsofwar.com/t/game-crash-when-harpy-mage-summon-bladewing-while-dying-rare-bug/70818/4 "2021-07-07T14:35:55Z")

</div>

Yep tried to reproduce over Android myself, it’s fine, is like if Tom Howard himself had programmed that version… it just works (≧∇≦)ﾉ  
Thanks for the help!

---

<div class="post-metadata">

**Author:** ![zRrr](https://avatars.discourse-cdn.com/v4/letter/z/439d5e/32.png) [@zRrr](https://community.gemsofwar.com/u/zRrr)\
**Post date:** [July 7, 2021, 10:47pm UTC](https://community.gemsofwar.com/t/game-crash-when-harpy-mage-summon-bladewing-while-dying-rare-bug/70818/5 "2021-07-07T22:47:03Z")

</div>

TLDR: please fix scatter damage, inconsistent behaviour is better then unresponsive game.

Tested on both Harpy Mage and Arachnean Weaver. Bug seems time related, so far I’ve seen 3 outcomes when trait procs:

- 
  1. Both summoner and summoned troops take damage. Game continue to run. (4x speed)

- 
  1. Summoned troop appears, game becomes unresponsive while consuming 100% of cpu core. (2x speed)

- 
  1. Summoned troop appears, only summoner takes damage and dies. (0.25x speed). Game continues.

Freeze itself is caused by scatter damage assignment code. Function takes amount of _hits_ and list of _targets_ as parameters. It then repeatedly picks random target from _targets_ and assigns it 1 point from _hits_, until _hits_ is zero.  
Code won’t assign more points than target has health (and armor), unless all other **target player troops** are assigned enough points.  
If troop somehow sneaks in after _targets_ is set, game won’t be able to progress and will loop forever, because it checks two troops, but can only ‘damage’ one.

Sacrificial Priest and Sunbird have similar spells, but are scripted slightly differently, so I’ve only seen outcome 3.

---

<div class="post-metadata">

**Author:** ![HagureShinma](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/hagureshinma/32/69779_2.png) [@HagureShinma](https://community.gemsofwar.com/u/HagureShinma)\
**Post date:** [July 8, 2021, 1:21am UTC](https://community.gemsofwar.com/t/game-crash-when-harpy-mage-summon-bladewing-while-dying-rare-bug/70818/6 "2021-07-08T01:21:24Z")

</div>

Oh i omited that little bit, i’m using 4x speed.
