From 544a7e004cb92bc58684c8fafd5723e4a0564923 Mon Sep 17 00:00:00 2001 From: Gargaj Date: Sat, 11 Feb 2017 21:46:40 +0100 Subject: [PATCH] Magic walls always swallow objects Even after they stopped grinding, they should eat boulders/diamonds. --- boulderdash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boulderdash.js b/boulderdash.js index f3ba8fc..dfb74d1 100644 --- a/boulderdash.js +++ b/boulderdash.js @@ -507,9 +507,9 @@ Boulderdash = function() { }, domagic: function(p, to) { + this.clear(p); if (this.magic.time > 0) { this.magic.active = true; - this.clear(p); var p2 = new Point(p.x, p.y + 2); if (this.isempty(p2)) this.set(p2, to);