Skeen / HearthstoneBot

A (DISCONTINUED) bot for the Blizzard Entertainment game: Hearthstone
62 stars 28 forks source link

Hero Powers: #38

Open ghost opened 10 years ago

ghost commented 10 years ago

So I was screwing around, and Hero Powers that need targeting can be used by if (cost <= available_crystals) then local enemy_hero_card = GetCard(EnemyHero) DoAttack(hero_power_card, enemy_hero_card) end and the ones that don't need targeting seems to work better if I use if (cost <= available_crystals) then DoAttack(hero_power_card, hero_power_card) end although I was wondering if there was a variable I can access to see if the hero power had already been used. I tried using a global variable in lua but it wasn't consistent.