Fix CheckBlock

This commit is contained in:
oc 2018-03-28 22:30:36 +08:00
parent a5ffe95152
commit f92f4e7429

View File

@ -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;