You are able to control the opponent player by first defining them as a variable and then you can write things like enemy.say(null); which causes the enemy code to error out and not function, or you could make opponents attack themselves using enemy.attack(enemy); I feel this is most likely a bug as it is very exploitable.
This is using javascript by the way.
1 Like
Thatās weird and funny) I can only say āWhoa!ā))
1 Like
You can also walk them in to the bear traps, one after the otherā¦

Well, I would say that it is not one that is a game crasher or an ultimate exploit. Have you tried using it against any other than the simpleCPU? It should produce an error with the more advanced challengers.
I think yes)
I totally disagree with idea that my opponents can capture control over my hero in multyplayer levels)
but, your player is not āsimple cpuā is it? Try itā¦from here https://codecombat.com/play/ladder/dueling-grounds, choose either play as red or blue (up to you) and select the medium level, just for example.
It errors immediately.
it actually does work against non cpus
I will send a video
better yet, pm me the code you are using to affect the enemy. I just realized, the code Iām using failsā¦it is plausible your is working.
edit: i just sent a new pm donāt know how but i responded to your pm
older post: i cant pm because I ran the daily limit
would you like the video and code as a public message?
because I can edit the post
Letās wait on the code thenā¦best not to share, especially if I am incorrect and it truly is a bug.
1 Like
After further testing, the exploit does work fairly well against the Simple CPU. However, as you move up in difficulty levels, it becomes less and less effective and ends up throwing a critical error at the Hard level, completely stopping the code.
I had mixed results with PvP, but I think it did have some effect.
@Chaboi_3000 and @Deadpool198, think this should be passed on?
i can get the code to break someone on hard mode, you just have to edit what the enemy says.
This isnāt the first time Iāve seen this, itās come up a few times but I thought the team had fixed it. This topic mentions enemy.defeat():
[BUG] multiplayer hack? Starting with zero health
Where bryukh said:
āThanks, guys! Iāve fixed it (maybe need some time for caching refreshing). We know where from this cheat appeared but not sure how long it has been working.ā
That was a long time ago thoughā¦
Danny
I think this is another brand new one bug that can be used to cheat) Not defeat method.
P.S. I remember this case. Not so long ago, two years only)
hey what would happen if the enemy attacked itself
It hapen when one of your code like hero.attack(enemy) then the enemy is insvisibillty so the code canāt work so the hero are ruining for attack the enemy
He would die of course. If he would attack himself long\hard enough (like catapults f.e.)
You can try by yourself:
load https://codecombat.com/play/level/forest-flower-grove?
and put:
while True:
self.attack(self)
I donāt know is it possible to command oneās allies to attack themselves. Think yes, but I didnāt try that.