From a310ca300384a2d84392ab41ef098803358d9262 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Oliver=20R=C3=BCmpelein?= <oli_r@fg4f.de>
Date: Tue, 7 Oct 2014 11:57:55 +0200
Subject: [PATCH] Creature-Specific Options show up on left-click

---
 src/jsds_crafty.js | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/jsds_crafty.js b/src/jsds_crafty.js
index f56066b..348fbb0 100644
--- a/src/jsds_crafty.js
+++ b/src/jsds_crafty.js
@@ -78,15 +78,13 @@
 			});
 			cur_sel=player[this.id];
 			cur_sel.printoutput();
+			cur_sel.sel_att();
 			this.enableControl();
 		    };
 		    if(e.mouseButton === Crafty.mouseButtons.RIGHT) {
 			if ( !cur_sel ) { return; };
-			if ( cur_sel == player[this.id] )
+			if ( cur_sel != player[this.id] )
 			{
-			    cur_sel.sel_att();
-			}
-			else {
 			    cur_sel.attack(player[this.id]);
 			};
 		    };