Battlecry targeting minions do not work as expected
See original GitHub issueThe code reports that it told it to target the correct target. This has been discussed in #9 but imo needs its own issue.
What usually happens is it will:
- Say ‘Shattered Sun Cleric > Friendly Minion’
- Click the battlecry minion
- Play the battlecry minion
- Not click who it was told to target with it
- Attempt to continue playing, usually results in the battlecry being used on the next friendly minion to attack, for example. Sometimes it just spasms out at this stage, constantly playing and canceling until it targets a random minion.
I saw you say in another thread that this could be caused by me? I am using the most up to date client, have based my bot off of the Python base example, and the command is properly “popped up” in game.
@lanhin Said that this is caused by: “playing the battlecry” is a targeted action [cleric, minion], but once it is placed (and not yet battlecried), it becomes a different PlayOption halfway through, similar to that of an attack. So now it is [cleric], [cleric, minion] if you want to play a battlecry minion.
This can probably be solved on the bot end by recognizing when a battlecry minion is asking for a target and thus choosing one.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:6 (6 by maintainers)

Top Related StackOverflow Question
@AiSatan thanks for the suggestion, I’ve already included it in the current code. Next time you can directly create a pull request no matter how small the change is.
The fix doesn’t seem to be perfect but it could be a temp solution as long as it works.
@All sorry for my absence during the discussion. I have a few interviews on-going so I pretty much give priorities to preparing the interviews. I will be back as soon as I get them done.
We notice that it works fine, if we add this.pegasus.DropObject(); in this method:
`
`
we tested battlecrys, target spells and attack