Working on effect bubbles (visual indicators for awareness state changes)

This commit is contained in:
2014-06-15 13:42:11 -07:00
parent 370d582936
commit bb1aa77834

View File

@@ -697,6 +697,7 @@ var AISprite = function(game, x, y, key, frame) {
this.setAwarenessEffect = function(state) { this.setAwarenessEffect = function(state) {
var animkey = ""; var animkey = "";
if ( this.awareness_effect !== null ) { if ( this.awareness_effect !== null ) {
return;
this.awareness_effect.alive = false; this.awareness_effect.alive = false;
this.awareness_effect.destroy(); this.awareness_effect.destroy();
this.awareness_effect = null; this.awareness_effect = null;