var LevelUtils = require("../../../src/levels").LevelUtils;
var initiate_combat = require("../../../src/rtcombat").initiate_combat;

exports.listeners = {
  playerEnter: function(l10n) {
    var callback = function(success) {};
    return function(room, rooms, player, players, npc, npcs) {
      if (!player.isInCombat() && !npc.isInCombat())
        initiate_combat(l10n, this, player, room, npcs, players, callback);
      else
        var attackInterval = setInterval(attack, 5000)

      function attack() {
        if (npc && player && !player.isInCombat() && !npc.isInCombat()){
          clearInterval(attackInterval);
          initiate_combat(l10n, this, player, room, npcs, players, callback);
        } else cancelInterval(attackInterval);
      }

    }
  }
};

@@ -148,16 +148,18 @@
 ers = %7B%0A
+  
   player
@@ -178,24 +178,28 @@
 ion(l10n) %7B%0A
+    
     var call
@@ -227,16 +227,20 @@
 ss) %7B%7D;%0A
+    
     retu
@@ -304,253 +304,18 @@
     
-if (!player.isInCombat() && !npc.isInCombat())%0A        initiate_combat(l10n, this, player, room, npcs, players, callback);%0A      else%0A        var attackInterval = setInterval(attack, 5000)%0A%0A      function attack() %7B%0A        if (npc && player && 
+      if (
 !pla
@@ -356,51 +356,15 @@
 t())
-%7B
 %0A      
-    clearInterval(attackInterval);%0A
     
@@ -450,61 +450,11 @@
    %7D
- else cancelInterval(attackInterval);%0A      %7D%0A%0A    %7D%0A
+%0A  
   %7D%0A

Remove buggy 'fix'