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.
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.