From f92f4e742904ab12894c76f6f0e9c3bdf85e72f8 Mon Sep 17 00:00:00 2001 From: oc Date: Wed, 28 Mar 2018 22:30:36 +0800 Subject: [PATCH] Fix CheckBlock --- libs/control.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/control.js b/libs/control.js index cbf3e9ca..0bae3a0d 100644 --- a/libs/control.js +++ b/libs/control.js @@ -990,8 +990,10 @@ control.prototype.checkBlock = function () { core.drawTip('受到领域伤害'+damage+'点'); } - core.playSound('zone.ogg'); - core.drawAnimate("zone", x, y); + if (damage>0) { + core.playSound('zone.ogg'); + core.drawAnimate("zone", x, y); + } if (core.status.hero.hp<=0) { core.status.hero.hp=0;