紧急修正:把losehp写成了loseHp

This commit is contained in:
Howard-Zhou-77 2023-10-11 14:22:45 +08:00 committed by GitHub
parent f739a207ef
commit 1a3bbd6742
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -562,12 +562,12 @@ game.import('card',function(lib,game,ui,get,ai,_status){
prompt2:'将本次获得的【毒】交给其他角色',
ai1:function(card){
var player = _status.event.player;
if(player.hasSkillTag("usedu")||get.effect(player,{name: "loseHp"}, player, player)>0) return 0;
if(player.hasSkillTag("usedu")||get.effect(player,{name: "losehp"}, player, player)>0) return 0;
if(!ui.selected.cards.length) return 1;
return 0;
},
ai2:function(target){
if (target.hasSkillTag("usedu")) return get.attitude(_status.event.player,target)-0.01;
if (target.hasSkillTag("usedu")) return get.attitude(_status.event.player,target)-0.01;
return -get.attitude(_status.event.player,target)+0.01;
},
});