# Opponent Code has an error, I cannot move: Error: "You can't use Hero Placeholder 1's \`attack\` method here."

**URL:** <https://discourse.codecombat.com/t/opponent-code-has-an-error-i-cannot-move-error-you-cant-use-hero-placeholder-1s-attack-method-here/35781>\
**Category:** Bugs\
**Created:** [June 29, 2023, 9:32pm UTC](https://discourse.codecombat.com/t/opponent-code-has-an-error-i-cannot-move-error-you-cant-use-hero-placeholder-1s-attack-method-here/35781 "2023-06-29T21:32:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlyTomji](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@AlyTomji](https://discourse.codecombat.com/u/AlyTomji)\
**Post date:** [June 29, 2023, 9:32pm UTC](https://discourse.codecombat.com/t/opponent-code-has-an-error-i-cannot-move-error-you-cant-use-hero-placeholder-1s-attack-method-here/35781/1 "2023-06-29T21:32:52Z")

</div>

`Error: You can't use Hero Placeholder 1's `attack` method here.`  
These are the players from the Top 20 of the `Red leaderboard`:

- jasoneilif
- turnaround
- Deadpool198
- JustALuke
- DimaP
- Jason Lin5

Can we please check?  
You can reproduce by challenging them with this “do nothing” JS code:

```python
var i = 0;
while (true) {
     console.log(i++);
}

```

Expected, I get log statement that counts up to the limit.  
Actual: For most of these players I get around 10 numbers logged.
