What’s happening
"In your attack
function, below the health
variable, create an if
statement. Set the condition to call the isMonsterHit
function. "(entire instructions provided for challenge)
My code so far
health -= getMonsterAttackValue(monsters[fighting].level);
if (isMonsterHit) {
};
Hello, if you need to call a function it would be function() inside the condition.
so it would be:
if (isMonsterHit()) { } Thanks so much, Rob!!!
That’s it, Happy Coding!
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.