Creature-Specific Options show up on left-click
This commit is contained in:
parent
689cd3855f
commit
a310ca3003
1 changed files with 2 additions and 4 deletions
|
@ -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]);
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue