It appears he has a pretty robust logging system. Having a chat with PixelTweak, it even red flags you. If your having that error every time you try to attack, you've probably been red flagged.
If anyone has more information on it, please share!
Errorin logging information.
error: function(){
console.log('Something went wrong! ):');
$("#quick_success").css({backgroundColor: "#710000"}).html('An error has occured, refreshing in 5 seconds!').fadeIn(300);
setTimeout(function(){
redirect('battle');
}, 5000);
General logout error.
} else if(json.error === 1){
$("#quick_success").css({backgroundColor: "#710000"}).html('You\'ve been logged out, refreshing in 5 seconds!').fadeIn(300);
setTimeout(function(){
redirect('home');
}, 5000);
Hereis the one he added to stop us from preventing monster attacks.
if(json.error === 4){ // Battle is over!
battle_data['monsters'][monster_key]['attack_interval'] = setTimeout(function(){
battle_data['monsters'][monster_key]['attack']();
}, 3000);
These are all just for ./battle./ though.