animate noPass

This commit is contained in:
oc 2018-11-24 16:17:53 +08:00
parent b8c6a4fdf7
commit c848ca8c13

View File

@ -89,9 +89,7 @@ maps.prototype.addInfo = function (block) {
block.event.trigger = 'getItem';
}
if (!core.isset(block.event.noPass)) {
if (block.event.cls.indexOf("enemy")==0 || block.event.cls.indexOf("npc")==0 || block.event.cls=='terrains' || block.event.cls=='autotile') {
block.event.noPass = true;
}
block.event.noPass = true;
}
if (!core.isset(block.event.animate)) {
if (block.event.cls=='enemys' || block.event.cls=='npcs') {