This commit is contained in:
Gnieark 2015-12-18 21:30:19 +01:00
parent 5c9c007d4a
commit d3c1fd970a

View File

@ -29,7 +29,7 @@ function fight(xd_check){
document.getElementById('logs').innerHTML = 'erreur' +xhr.responseText; document.getElementById('logs').innerHTML = 'erreur' +xhr.responseText;
return; return;
} }
if( strike['target'] <> ''){ if( strike['target'] !== ''){
var coords = strike['target'].split(","); var coords = strike['target'].split(",");
document.getElementById( 'bot' + strike['opponent'] + '-' + coords[1] + '-' + coords[0]).innerHTML = "X"; document.getElementById( 'bot' + strike['opponent'] + '-' + coords[1] + '-' + coords[0]).innerHTML = "X";
} }