HearthstoneBot icon indicating copy to clipboard operation
HearthstoneBot copied to clipboard

API should support hero powers

Open ghost opened this issue 11 years ago • 2 comments

The Lua API should enable the use of hero powers.

ghost avatar Mar 23 '14 00:03 ghost

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.

ghost avatar Mar 23 '14 00:03 ghost

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.

ghost avatar Mar 23 '14 01:03 ghost