From 5b84693ba73c53bb6ff28fc5a5527c3821c663e9 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Sun, 26 Nov 2017 21:33:46 +0100 Subject: [PATCH] Update: CC - Before Render - Moorcow (zo950m57cc.js) 36 bytes modified --- zo950m57cc.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/zo950m57cc.js b/zo950m57cc.js index edb6abe..e603db3 100644 --- a/zo950m57cc.js +++ b/zo950m57cc.js @@ -582,16 +582,17 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) { this.kill = function(enemy) { - this.meshes[enemy.meshType].map( - function(object) { - if (object.mesh === enemy.mesh) { - object.inUse = false; - object.mesh.visible = false; - object.mesh.updateInstance('visibile'); + if (!enemy.isKanister) { + this.meshes[enemy.meshType].map( + function(object) { + if (object.mesh === enemy.mesh) { + object.inUse = false; + object.mesh.visible = false; + object.mesh.updateInstance('visible'); + } } - } - ) - + ) + } /** * We only remove the things we cloned */