Entangling Roots and a comp player

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,494
Simple spell: Area Entangling Roots.
Based on Silence for the Hero, and Entangling Roots for the dummy.

Works perfectly fine.
As long as I am casting it.

Thing is, I also have a computer controlled player with that unit.
And, he didn't seem to ever use it.

Lots of debugging code later, turns out:
- he is casting it just fine
- the dummy is created
- the dummy has no trouble casting the spell on a target
- the order action returns true, which means the order has been accepted
- no entangling takes place.

All I get from a comp is a screen full of text, but no roots.
And, well, yes, if I cast it with my unit it works.
If I cast it for the comp (shared units) or the comp by itself, no roots.

No, the dummy has no problems.
No, the code is not limited in what player might cast it.

The very same works for all players if the dummy casts something else, like Web for example.
But I don't want Web, I want Entangling Roots.

Any ideas?
 

Sirroelivan

Gunnerkrigg Court
Reaction score
95
Maybe the ai of the computer player is interfering? Maybe if you create the dummy for neutral passive?
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,494
Brilliant.

Neutral Passive isn't very good, as he is not enemy by default.
More importantly though, if the unit happens to die from it, you want the casting player to get the bounty.

Well, quick test with Neutral Extra, works all the time.

Conclusion: Ignore guard position, done...


@!#?@! of a @!#?@! of @!#?@!.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top