This commit is contained in:
ckcz123 committed 2017-12-27 16:41:53 +08:00
commit ea7e26c8a5
4 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -76,7 +76,7 @@ enemys.prototype.getEnemys = function (enemyId) {
}
enemys.prototype.hasSpecial = function (special, test) {
return special!=0 && (special%100 == test || this.hasSpecial(parseInt(special/100), test));
return (special instanceof Array)?special.indexOf(test)>=0:(special!=0&&(special%100==test||this.hasSpecial(parseInt(special/100), test)));
}
enemys.prototype.getSpecialText = function (enemyId) {