# \[Not a bug\] Why does the enemy disregard matching hourglass gems?

**URL:** https://community.gemsofwar.com/t/not-a-bug-why-does-the-enemy-disregard-matching-hourglass-gems/82222
**Category:** Bug Reports
**Created:** [November 15, 2023, 4:34pm UTC](https://community.gemsofwar.com/t/not-a-bug-why-does-the-enemy-disregard-matching-hourglass-gems/82222 "2023-11-15T16:34:50Z")
**Posts on this page:** 3
**Page:** 2

<div class="post-metadata">

### Author: ![Fourdottwoone](https://sea1.discourse-cdn.com/flex019/user_avatar/community.gemsofwar.com/fourdottwoone/32/66655_2.png) [@Fourdottwoone](https://community.gemsofwar.com/u/Fourdottwoone)
#### Post date: [November 16, 2023, 12:07pm UTC](https://community.gemsofwar.com/t/not-a-bug-why-does-the-enemy-disregard-matching-hourglass-gems/82222/26 "2023-11-16T12:07:47Z")

</div>

> [@TheIdleOne](#):
>
> At the very least, spells are categorized somehow and the AI will prioritize some type of spells depending on scenarios.

As far as I understand it that gets evaluated only once the initial decision, casting a spell, has been taken. It also seems to be subject to weights, possibly with the hero receiving a higher weight and other factors like mana cost getting taken into account. There may be some hidden “weight” score directly attached to each spell instead, that would take data file diving to figure out though. Still, main point is that the AI shoots blindly. It doesn’t know what a spell will achieve and whether it even makes sense to use it in the current situation.

There’s another step on top of that, picking a target. My gut feeling says that when it targets opponents, part of the weight given each target is determined by mana (or fill percentage). However, I’ve never analyzed that in detail.

---

<div class="post-metadata">

### Author: ![Stratelier](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@Stratelier](https://community.gemsofwar.com/u/Stratelier)
#### Post date: [November 16, 2023, 7:13pm UTC](https://community.gemsofwar.com/t/not-a-bug-why-does-the-enemy-disregard-matching-hourglass-gems/82222/27 "2023-11-16T19:13:33Z")

</div>

> [@Fourdottwoone](#):
>
> It doesn’t know what a spell will achieve and whether it even makes sense to use it in the current situation.

This feels consistent with many experiences:

- In Wednesday’s Boss Dungeon, Rubirath’s team contains Green Slime and Dark Troll – who cast often despite contributing (effectively) nothing beyond a board shuffle or Extra Turn.
- Similarly, if Detect-o-Bot catches 2 or more Troops with full mana, it tends to start looping indefinitely until its spell self-destructs, despite that it’s no Chalcedony (haha) and other Red troops on its team could use that mana to cast their own spells.
- I forget which cpu team this is specifically, but it has a pairing of Stone Giant and Rock Troll where the cpu tends to cast them _in order_, despite the change to Stone Giant (remove Red → destroy Brown) leaving almost no Brown Gems for Rock Troll to double.

---

<div class="post-metadata">

### Author: ![McDoubleDad](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@McDoubleDad](https://community.gemsofwar.com/u/McDoubleDad)
#### Post date: [November 30, 2023, 1:25am UTC](https://community.gemsofwar.com/t/not-a-bug-why-does-the-enemy-disregard-matching-hourglass-gems/82222/28 "2023-11-30T01:25:52Z")

</div>

Just got back from my “sabbanical” (I could still see everything just not post). This ain’t a GoW Discord server it’s the dev forum and I didn’t treat it them or y’all as respectful as I could’ve. Truly my bad. I’ve apologized to Bramble & gmorin2 and thanked him for his service - to the USA and to this game (even tho I disagree with this particular quest). Gem on everyone!!! ❤

[Previous page](https://community.gemsofwar.com/t/not-a-bug-why-does-the-enemy-disregard-matching-hourglass-gems/82222.md?page=1)
