From d3f650c5a393afaf5e019f91f7b5cb240fbc2dd1 Mon Sep 17 00:00:00 2001 From: libccy Date: Fri, 31 Mar 2017 14:57:59 +0800 Subject: [PATCH] pre --- card/swd.js | 27 --------------------------- character/gujian.js | 36 +----------------------------------- character/hearth.js | 44 +++++++++++++++++++++++++++++++++++++++++++- game/game.js | 18 ++++++++++-------- 4 files changed, 54 insertions(+), 71 deletions(-) diff --git a/card/swd.js b/card/swd.js index 9ccce769d..5f2e2f271 100644 --- a/card/swd.js +++ b/card/swd.js @@ -4579,33 +4579,6 @@ card.swd={ } } }, - xujin:{ - trigger:{player:'phaseBefore'}, - check:function(){return false;}, - filter:function(event,player){ - return player.storage.xujin0; - }, - content:function(){ - trigger.num+=player.storage.xujin; - player.storage.xujin--; - } - }, sadengjinhuan:{ trigger:{player:'shaMiss'}, check:function(event,player){ diff --git a/character/gujian.js b/character/gujian.js index 2c452f0f1..686fb11b1 100644 --- a/character/gujian.js +++ b/character/gujian.js @@ -642,40 +642,6 @@ character.gujian={ } } }, - meiying_old:{ - trigger:{global:'phaseBefore'}, - filter:function(event,player){ - return event.player!=player&&!player.isTurnedOver()&&!player.storage.meiying; - }, - check:function(event,player){ - return ai.get.attitude(player,event.player)<0&& - ((player.countCards('h')>player.hp&&player.countCards('h','lebu')==0)||get.distance(player,event.player)>1); - }, - logTarget:'player', - content:function(){ - "step 0" - player.line(trigger.player,'green'); - player.phase(); - player.storage.meiying=trigger.player; - "step 1" - if(!player.isTurnedOver()){ - player.turnOver(); - } - delete player.storage.meiying; - }, - mod:{ - targetInRange:function(card,player,target,now){ - if(target==player.storage.meiying) return true; - }, - }, - ai:{ - effect:{ - target:function(card){ - if(card.name=='guiyoujie') return [0,0]; - } - } - } - }, xidie:{ trigger:{player:'phaseBegin'}, direct:true, @@ -869,7 +835,7 @@ character.gujian={ } if(trigger.source){ trigger.source.storage.mingkong=true; - trigger.source.addTempSkill('mingkong2','phaseBefore'); + trigger.source.addTempSkill('mingkong2','phaseAfter'); } }, ai:{ diff --git a/character/hearth.js b/character/hearth.js index 1a08b8932..f5160e78a 100644 --- a/character/hearth.js +++ b/character/hearth.js @@ -169,6 +169,47 @@ character.hearth={ hs_malfurion:['hs_malorne'], }, skill:{ + mengye:{ + trigger:{global:'phaseBegin'}, + priority:19, + filter:function(event,player){ + if(get.mode()=='identity'&&_status.mode=='zhong'&&game.zhu&&!game.zhu.isZhu) return false; + if(event.player.identity=='zhu'||get.is.jun(event.player)) return false; + return !player.isTurnedOver()&&event.player!=player; + }, + check:function(event,player){ + var att=ai.get.attitude(player,event.player); + return att<=-3&&!game.hasPlayer(function(current){ + return ai.get.attitude(player,current)