diff --git a/moonlight/js/moonlight-skulk.js b/moonlight/js/moonlight-skulk.js index 4227989..1584b2b 100644 --- a/moonlight/js/moonlight-skulk.js +++ b/moonlight/js/moonlight-skulk.js @@ -322,6 +322,12 @@ Light.prototype = Object.create(Phaser.Sprite.prototype); Light.prototype.constructor = Light; var AISprite = function(game, x, y, spritetype) { + this.clearWordBubble = function() + { + this.bubble.destroy(); + this.bubble = null; + } + this.setWordBubble = function() { if ( this.bubble != null || this.sprite_group == undefined) { @@ -356,12 +362,6 @@ var AISprite = function(game, x, y, spritetype) { setTimeout(function(){this.clearWordBubble();}, 20000); } - this.clearWordBubble = function() - { - this.bubble.destroy(); - this.bubble = null; - } - this.update = function() { if ( game.rnd.integerInRange(0, 100) < 95 )