优化写法

This commit is contained in:
157 2023-10-26 22:38:37 +08:00 committed by GitHub
parent a0a23ec30d
commit 556e3eb5b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -2597,7 +2597,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return get.name(card) === 'tao' || get.name(card) === 'jiu';
}),
att = get.attitude(_status.event.player, event.player),
eff = get.damageEffect(event.player, player, _status.event.player, event.nature),
eff = get.damageEffect(event.player, player, _status.event.player, get.natureList(event)),
fd = event.player.hasSkillTag('filterDamage', null, {
player: player,
card: event.card
@ -2605,7 +2605,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
hp = player.hp + tj;
if(player.storage.tairan2) hp -= player.storage.tairan2;
if(eff <= 0 || fd || att >= -2 || Math.abs(hp) <= 1) return false;
if(hp > 2 || event.player.isLinked() && event.nature && eff > 0) return true;
if(hp > 2 || eff > 0 && event.player.isLinked() && event.hasNature()) return true;
return !event.player.countCards('hs') || event.player.hp > 2 * event.num && !event.player.hasSkillTag('maixie');
},
logTarget:'player',