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:
image
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?

2 Likes

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

Heh…welcome!

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:

2 Likes

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