From 79dc0cc376f918ed7bd11dbdfe40aea667804c39 Mon Sep 17 00:00:00 2001 From: Alyssa Milburn Date: Mon, 28 Jul 2014 21:49:59 +0200 Subject: [PATCH] jstanks: allow simultaneous cannon firing --- jstanks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jstanks.js b/jstanks.js index 4b83d03..7845673 100644 --- a/jstanks.js +++ b/jstanks.js @@ -480,7 +480,7 @@ var rotate_point = function(angle, point) { ForfTank.prototype.fireCannon = function(that, vector, dist2) { /* If someone's a crater, this is easy */ - if (this.killer || that.killer) { + if ((this.killer && this.killer !== that) || that.killer) { return; }