[SOLVED] Backwoods forest : The one wizard challenge help

The if target and hero:canCast(“chain-lightning”, target) is in the loop between do -> end
if hero.canCast(“chain-lightning”):
if hero.isReady(“chain-lightning”):
are equivalent
chain-lightning is a weapon of mass destruction and somehow must be ensured we target only living beings…