Hi! Whenever I do the
enemy = hero.findNearestEnemy()
hero.cast("drain-life", enemy)
It responds with
" I can’t cast “#{spell}” on the target
and I also did:
hero.cast("drain-life", target)
and YET, It still says that can someone give me specific code on how to do this?
Hello and welcome to codecombat discourse! This is a cozy forum where you can share ideas, share fan art, get assistance for code, etc! Before you proceed, we hope that you review this topic, which shows all essentials of this board! Thanks!