Play Home Contribute Github Join Us! Discourse Staff Members Github Contribution Guides Team

[SOLVED] How do you use The Precious?

Hi! Whenever I do the

enemy = hero.findNearestEnemy()
hero.cast("drain-life", enemy)

It responds with

:stuck_out_tongue: " 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!

Howdy and welcome to the forum!

How do you use The Precious?, well, with the ring equipped, you will see the available methods:
With that, you can click on the available option and get (one example):

Notice that ‘drain-life’ is not an option for The Precious.

1 Like

really? :stuck_out_tongue: thanks! But I just tried it and how do I know when im invisible?


im completely opague. If I indeed am they should add like a 60% opacity


Not sure I understand your last:

But, you never truly disappear to your own view…that would make the coding, and gaming, quite difficult. In my testing, there is an icon flashing above the hero avatar, indicating the most recent spell (event) in effect.

1 Like

ok thanks for the answer. Sinse it comes like that I nevee knew that was the answer LOL! :exploding_head:


This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.