HearthstoneBot
HearthstoneBot copied to clipboard
API should support hero powers
The Lua API should enable the use of hero powers.
So I was looking at this in the source code for Hero Power: // TODO: Figure out which of these lines work, one of them does attack(c1); drop_card(c1, true); drop_card(c1, false);
I feel like these would be dependent on the hero involved. Mages and Priests should probably be using attack(c1) while everything else should be using drop_card(c1, false), or at least that's what my intuition is telling me.
There is indeed a difference between how this is handled for different heroes, depending on if their hero power is targeted, but focus at first should be on non-targeted, for several reasons. 1. There is mainly untargeted hero powers, and because these will be easier to implement. I do believe there is a leftover in the AI file, of something that works sometimes.