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

[SOLVED]Bugs in Operation Killdeer

CodeCombat - Coding games to learn Python and JavaScript?

after the resurrection of the dead ( hero.cast(‘raise-dead’); )
, the pet begins to attack the hero

function shouldRun() {
if ( < hero.maxHealth / 2) {
return true;
} else {
return false;
function ataka() {
if (enemy) {
var distEnemy = hero.distanceTo(enemy);
if (hero.canCast(“drain-life”, enemy) && distEnemy < 15) {
hero.cast(“drain-life”, enemy);
} else {
if (hero.canCast(‘raise-dead’)) {
} else {
while (true) {
var enemy = hero.findNearestEnemy();
var heroHealth =;
// Беги к отметке Х только тогда, когда shouldRun() возвращается true
if (shouldRun()) {
hero.moveXY(57, 37);
ataka(); // Или сражайся!
} else

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!

this bug has been reported several years ago the devs are still trying to get rid of it

Thanks cheddarcheese :smile:

no problem @Alex_Mlodzinski