修复护甲失效时damagepop错误的bug

修复damage函数animate部分中,定义numx时未判断角色护甲是否失效,导致之后的$damagepop即使在角色护甲失效时也计算角色护甲的bug
This commit is contained in:
CatIgnore 2023-10-22 13:17:15 +08:00 committed by GitHub
parent 3148fdb8a7
commit 96e5a464a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -19366,7 +19366,7 @@
}
}
},natures,player);
var numx=Math.max(0,num-player.hujia);
var numx=player.hasSkillTag('nohujia')?num:Math.max(0,num-player.hujia);
player.$damagepop(-numx,natures[0]);
}
if(event.unreal) event.goto(6)