2015-07-08 04:14:53 +00:00
|
|
|
|
'use strict';
|
2015-04-29 03:25:17 +00:00
|
|
|
|
card.standard={
|
2016-04-12 07:49:02 +00:00
|
|
|
|
connect:true,
|
2015-04-29 03:25:17 +00:00
|
|
|
|
card:{
|
|
|
|
|
damage:{
|
|
|
|
|
ai:{
|
|
|
|
|
result:{
|
|
|
|
|
target:-1.5
|
|
|
|
|
},
|
|
|
|
|
tag:{
|
|
|
|
|
damage:1
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
recover:{
|
|
|
|
|
ai:{
|
|
|
|
|
result:{
|
|
|
|
|
target:1.5
|
|
|
|
|
},
|
|
|
|
|
tag:{
|
|
|
|
|
recover:1
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
firedamage:{
|
|
|
|
|
ai:{
|
|
|
|
|
result:{
|
|
|
|
|
target:-1.5
|
|
|
|
|
},
|
|
|
|
|
tag:{
|
|
|
|
|
damage:1,
|
|
|
|
|
fireDamage:1,
|
|
|
|
|
natureDamage:1,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
thunderdamage:{
|
|
|
|
|
ai:{
|
|
|
|
|
result:{
|
|
|
|
|
target:-1.5
|
|
|
|
|
},
|
|
|
|
|
tag:{
|
|
|
|
|
damage:1,
|
|
|
|
|
thunderDamage:1,
|
|
|
|
|
natureDamage:1,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
respondShan:{
|
|
|
|
|
ai:{
|
|
|
|
|
result:{
|
|
|
|
|
target:-1.5,
|
|
|
|
|
},
|
|
|
|
|
tag:{
|
|
|
|
|
respond:1,
|
|
|
|
|
respondShan:1,
|
|
|
|
|
damage:1
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
sha:{
|
2015-04-29 14:08:51 +00:00
|
|
|
|
audio:true,
|
2015-04-29 03:25:17 +00:00
|
|
|
|
fullskin:true,
|
|
|
|
|
nature:['thunder','fire'],
|
|
|
|
|
type:'basic',
|
|
|
|
|
enable:true,
|
|
|
|
|
usable:1,
|
|
|
|
|
range:{attack:1},
|
|
|
|
|
selectTarget:1,
|
|
|
|
|
filterTarget:function(card,player,target){return player!=target},
|
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
|
|
|
|
if(event.skipShan){
|
|
|
|
|
event._result={bool:true};
|
|
|
|
|
}
|
|
|
|
|
else if(event.directHit){
|
|
|
|
|
event._result={bool:false};
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
var next=target.chooseToRespond({name:'shan'});
|
2016-04-02 14:51:26 +00:00
|
|
|
|
next.set('ai',function(){
|
|
|
|
|
var target=_status.event.player;
|
|
|
|
|
var evt=_status.event.getParent();
|
2015-11-06 10:05:08 +00:00
|
|
|
|
var sks=target.get('s');
|
|
|
|
|
if(sks.contains('leiji')||
|
2016-05-09 07:57:27 +00:00
|
|
|
|
sks.contains('releiji')||
|
2015-11-06 10:05:08 +00:00
|
|
|
|
sks.contains('lingbo')){
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
2016-04-02 14:51:26 +00:00
|
|
|
|
if(ai.get.damageEffect(target,evt.player,target,evt.card.nature)>=0) return -1;
|
2015-04-29 03:25:17 +00:00
|
|
|
|
return 1;
|
2016-04-02 14:51:26 +00:00
|
|
|
|
});
|
2015-04-29 03:25:17 +00:00
|
|
|
|
next.autochoose=lib.filter.autoRespondShan;
|
|
|
|
|
}
|
|
|
|
|
"step 1"
|
|
|
|
|
if(result.bool==false){
|
|
|
|
|
event.trigger('shaHit');
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.trigger('shaMiss');
|
2015-11-21 05:30:26 +00:00
|
|
|
|
event.responded=result;
|
2015-04-29 03:25:17 +00:00
|
|
|
|
}
|
|
|
|
|
"step 2"
|
|
|
|
|
if(result.bool==false&&!event.unhurt){
|
|
|
|
|
target.damage(get.nature(event.card));
|
|
|
|
|
event.result={bool:true}
|
|
|
|
|
event.trigger('shaDamage');
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.result={bool:false}
|
|
|
|
|
event.trigger('shaUnhirt');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
basic:{
|
|
|
|
|
useful:[5,1],
|
|
|
|
|
value:[5,1],
|
|
|
|
|
},
|
|
|
|
|
order:3,
|
|
|
|
|
result:{
|
2015-12-06 15:23:47 +00:00
|
|
|
|
target:function(player,target){
|
|
|
|
|
if(player.skills.contains('jiu')&&!target.num('e','baiyin')){
|
2015-12-08 13:54:44 +00:00
|
|
|
|
if(ai.get.attitude(player,target)>0){
|
|
|
|
|
return -6;
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
return -3;
|
|
|
|
|
}
|
2015-12-06 15:23:47 +00:00
|
|
|
|
}
|
|
|
|
|
return -1.5;
|
|
|
|
|
},
|
2015-04-29 03:25:17 +00:00
|
|
|
|
},
|
|
|
|
|
tag:{
|
|
|
|
|
respond:1,
|
|
|
|
|
respondShan:1,
|
|
|
|
|
damage:function(card){
|
|
|
|
|
if(card.nature=='poison') return;
|
|
|
|
|
return 1;
|
|
|
|
|
},
|
|
|
|
|
natureDamage:function(card){
|
|
|
|
|
if(card.nature) return 1;
|
|
|
|
|
},
|
|
|
|
|
fireDamage:function(card,nature){
|
|
|
|
|
if(card.nature=='fire') return 1;
|
|
|
|
|
},
|
|
|
|
|
thunderDamage:function(card,nature){
|
|
|
|
|
if(card.nature=='thunder') return 1;
|
|
|
|
|
},
|
|
|
|
|
poisonDamage:function(card,nature){
|
|
|
|
|
if(card.nature=='poison') return 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
shacopy:{
|
|
|
|
|
ai:{
|
|
|
|
|
basic:{
|
|
|
|
|
useful:[5,1],
|
|
|
|
|
value:[5,1],
|
|
|
|
|
},
|
|
|
|
|
order:3,
|
|
|
|
|
result:{
|
|
|
|
|
target:-1.5,
|
|
|
|
|
},
|
|
|
|
|
tag:{
|
|
|
|
|
respond:1,
|
|
|
|
|
respondShan:1,
|
|
|
|
|
damage:function(card){
|
|
|
|
|
if(card.nature=='poison') return;
|
|
|
|
|
return 1;
|
|
|
|
|
},
|
|
|
|
|
natureDamage:function(card){
|
|
|
|
|
if(card.nature) return 1;
|
|
|
|
|
},
|
|
|
|
|
fireDamage:function(card,nature){
|
|
|
|
|
if(card.nature=='fire') return 1;
|
|
|
|
|
},
|
|
|
|
|
thunderDamage:function(card,nature){
|
|
|
|
|
if(card.nature=='thunder') return 1;
|
|
|
|
|
},
|
|
|
|
|
poisonDamage:function(card,nature){
|
|
|
|
|
if(card.nature=='poison') return 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
shan:{
|
2015-04-29 14:08:51 +00:00
|
|
|
|
audio:true,
|
2015-04-29 03:25:17 +00:00
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'basic',
|
|
|
|
|
ai:{
|
|
|
|
|
basic:{
|
|
|
|
|
useful:[7,2],
|
|
|
|
|
value:[7,2]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
tao:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'basic',
|
|
|
|
|
enable:function(card,player){
|
|
|
|
|
return player.hp<player.maxHp;
|
|
|
|
|
},
|
|
|
|
|
savable:true,
|
|
|
|
|
selectTarget:-1,
|
|
|
|
|
filterTarget:function(card,player,target){
|
2015-08-15 09:10:06 +00:00
|
|
|
|
return target==player&&target.hp<target.maxHp;
|
2015-04-29 03:25:17 +00:00
|
|
|
|
},
|
2016-05-11 15:50:00 +00:00
|
|
|
|
modTarget:function(card,player,target){
|
|
|
|
|
return target.hp<target.maxHp;
|
|
|
|
|
},
|
2015-04-29 03:25:17 +00:00
|
|
|
|
content:function(){
|
|
|
|
|
target.recover();
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
basic:{
|
2015-11-06 10:05:08 +00:00
|
|
|
|
order:function(card,player){
|
|
|
|
|
if(player.hasSkillTag('pretao')) return 5;
|
|
|
|
|
return 2;
|
|
|
|
|
},
|
2015-11-14 15:48:04 +00:00
|
|
|
|
useful:[8,6.5],
|
|
|
|
|
value:[8,6.5],
|
2015-04-29 03:25:17 +00:00
|
|
|
|
},
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
2015-12-09 12:17:15 +00:00
|
|
|
|
// if(player==target&&player.hp<=0) return 2;
|
2015-06-27 16:21:25 +00:00
|
|
|
|
var nh=target.num('h');
|
|
|
|
|
var keep=false;
|
|
|
|
|
if(nh<=target.hp){
|
|
|
|
|
keep=true;
|
|
|
|
|
}
|
2015-12-06 15:23:47 +00:00
|
|
|
|
else if(nh==target.hp+1&&target.hp>=2&&target.num('h','tao')<=1){
|
2015-06-27 16:21:25 +00:00
|
|
|
|
keep=true;
|
|
|
|
|
}
|
2016-04-05 09:30:38 +00:00
|
|
|
|
var mode=get.mode();
|
2015-06-27 16:21:25 +00:00
|
|
|
|
if(target.hp>=2&&keep&&target.hasFriend()){
|
|
|
|
|
if(target.hp>2) return 0;
|
|
|
|
|
if(target.hp==2){
|
|
|
|
|
for(var i=0;i<game.players.length;i++){
|
2015-11-29 11:46:51 +00:00
|
|
|
|
if(target!=game.players[i]&&ai.get.attitude(target,game.players[i])>=3){
|
|
|
|
|
if(game.players[i].hp<=1) return 0;
|
2016-04-05 09:30:38 +00:00
|
|
|
|
if(mode=='identity'&&game.players[i].isZhu&&game.players[i].hp<=2) return 0;
|
2015-06-27 16:21:25 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2015-04-29 03:25:17 +00:00
|
|
|
|
if(target.hp<0&&target!=player&&target.identity!='zhu') return 0;
|
2015-06-14 05:07:39 +00:00
|
|
|
|
var att=ai.get.attitude(player,target);
|
2015-11-06 10:05:08 +00:00
|
|
|
|
if(att<3&&att>=0&&player!=target) return 0;
|
2016-05-07 03:12:04 +00:00
|
|
|
|
var tri=_status.event.getTrigger();
|
2016-04-05 09:30:38 +00:00
|
|
|
|
if(mode=='identity'&&player.identity=='fan'&&target.identity=='fan'){
|
2015-04-29 03:25:17 +00:00
|
|
|
|
if(tri&&tri.name=='dying'&&tri.source&&tri.source.identity=='fan'&&tri.source!=target){
|
2015-06-19 15:31:36 +00:00
|
|
|
|
var num=0;
|
2015-04-29 03:25:17 +00:00
|
|
|
|
for(var i=0;i<game.players.length;i++){
|
|
|
|
|
if(game.players[i].identity=='fan'){
|
|
|
|
|
num+=game.players[i].num('h','tao');
|
2015-06-14 05:07:39 +00:00
|
|
|
|
if(num>2) return 2;
|
2015-04-29 03:25:17 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2015-12-09 12:17:15 +00:00
|
|
|
|
if(num>1&&player==target) return 2;
|
2015-04-29 03:25:17 +00:00
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-04-05 09:30:38 +00:00
|
|
|
|
if(mode=='identity'&&player.identity=='zhu'&&target.identity=='nei'){
|
2015-07-08 04:14:53 +00:00
|
|
|
|
if(tri&&tri.name=='dying'&&tri.source&&tri.source.identity=='zhong'){
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-04-05 09:30:38 +00:00
|
|
|
|
if(mode=='stone'&&target.isMin()&&
|
2015-05-05 09:23:31 +00:00
|
|
|
|
player!=target&&tri&&tri.name=='dying'&&player.side==target.side&&
|
|
|
|
|
tri.source!=target.getEnemy()){
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
2015-04-29 03:25:17 +00:00
|
|
|
|
return 2;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
tag:{
|
|
|
|
|
recover:1,
|
|
|
|
|
save:1,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
bagua:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'equip',
|
|
|
|
|
subtype:'equip2',
|
|
|
|
|
ai:{
|
|
|
|
|
basic:{
|
|
|
|
|
equipValue:8
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
skills:['bagua_skill']
|
|
|
|
|
},
|
|
|
|
|
jueying:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'equip',
|
|
|
|
|
subtype:'equip3',
|
|
|
|
|
distance:{globalTo:1},
|
|
|
|
|
},
|
|
|
|
|
dilu:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'equip',
|
|
|
|
|
subtype:'equip3',
|
|
|
|
|
distance:{globalTo:1},
|
|
|
|
|
},
|
|
|
|
|
zhuahuang:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'equip',
|
|
|
|
|
subtype:'equip3',
|
|
|
|
|
distance:{globalTo:1},
|
|
|
|
|
},
|
|
|
|
|
chitu:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'equip',
|
|
|
|
|
subtype:'equip4',
|
|
|
|
|
distance:{globalFrom:-1},
|
|
|
|
|
},
|
|
|
|
|
dawan:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'equip',
|
|
|
|
|
subtype:'equip4',
|
|
|
|
|
distance:{globalFrom:-1},
|
|
|
|
|
},
|
|
|
|
|
zixin:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'equip',
|
|
|
|
|
subtype:'equip4',
|
|
|
|
|
distance:{globalFrom:-1},
|
|
|
|
|
},
|
|
|
|
|
zhuge:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'equip',
|
|
|
|
|
subtype:'equip1',
|
|
|
|
|
ai:{
|
|
|
|
|
basic:{
|
|
|
|
|
equipValue:function(card,player){
|
|
|
|
|
var num=1,i,no_target=true;
|
|
|
|
|
for(i=0;i<game.players.length;i++){
|
|
|
|
|
if(player.canUse({name:'sha'},game.players[i])) {
|
|
|
|
|
if(ai.get.attitude(player,game.players[i])<0){
|
|
|
|
|
no_target=false;break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(no_target) return 1;
|
|
|
|
|
num+=player.get('h','sha').length;
|
|
|
|
|
return num+1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
skills:['zhuge_skill']
|
|
|
|
|
},
|
|
|
|
|
cixiong:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'equip',
|
|
|
|
|
subtype:'equip1',
|
|
|
|
|
distance:{attackFrom:-1},
|
|
|
|
|
ai:{
|
|
|
|
|
basic:{
|
|
|
|
|
equipValue:2
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
skills:['cixiong_skill']
|
|
|
|
|
},
|
|
|
|
|
qinggang:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'equip',
|
|
|
|
|
subtype:'equip1',
|
|
|
|
|
distance:{attackFrom:-1},
|
|
|
|
|
ai:{
|
|
|
|
|
basic:{
|
|
|
|
|
equipValue:2
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
skills:['qinggang_skill']
|
|
|
|
|
},
|
|
|
|
|
qinglong:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'equip',
|
|
|
|
|
subtype:'equip1',
|
|
|
|
|
distance:{attackFrom:-2},
|
|
|
|
|
ai:{
|
|
|
|
|
basic:{
|
|
|
|
|
equipValue:function(card,player){
|
|
|
|
|
return Math.min(2.5+player.num('h','sha'),4);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
skills:['qinglong_skill']
|
|
|
|
|
},
|
|
|
|
|
zhangba:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'equip',
|
|
|
|
|
subtype:'equip1',
|
|
|
|
|
distance:{attackFrom:-2},
|
|
|
|
|
ai:{
|
|
|
|
|
basic:{
|
|
|
|
|
equipValue:function(card,player){
|
|
|
|
|
var num=2.5+player.num('h')/3;
|
|
|
|
|
return Math.min(num,4);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
skills:['zhangba_skill']
|
|
|
|
|
},
|
|
|
|
|
guanshi:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'equip',
|
|
|
|
|
subtype:'equip1',
|
|
|
|
|
distance:{attackFrom:-2},
|
|
|
|
|
ai:{
|
|
|
|
|
basic:{
|
|
|
|
|
equipValue:function(card,player){
|
|
|
|
|
var num=2.5+(player.num('h')+player.num('e'))/2.5;
|
|
|
|
|
return Math.min(num,5);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
skills:['guanshi_skill']
|
|
|
|
|
},
|
|
|
|
|
fangtian:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'equip',
|
|
|
|
|
subtype:'equip1',
|
|
|
|
|
distance:{attackFrom:-3},
|
|
|
|
|
ai:{
|
|
|
|
|
basic:{
|
|
|
|
|
equipValue:2.5
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
skills:['fangtian_skill']
|
|
|
|
|
},
|
|
|
|
|
qilin:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'equip',
|
|
|
|
|
subtype:'equip1',
|
|
|
|
|
distance:{attackFrom:-4},
|
|
|
|
|
ai:{
|
|
|
|
|
basic:{
|
|
|
|
|
equipValue:3
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
skills:['qilin_skill']
|
|
|
|
|
},
|
|
|
|
|
wugu:{
|
2015-04-29 14:08:51 +00:00
|
|
|
|
audio:true,
|
2015-04-29 03:25:17 +00:00
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'trick',
|
|
|
|
|
enable:true,
|
|
|
|
|
selectTarget:-1,
|
|
|
|
|
filterTarget:true,
|
|
|
|
|
contentBefore:function(){
|
|
|
|
|
"step 0"
|
|
|
|
|
game.delay();
|
|
|
|
|
"step 1"
|
|
|
|
|
ui.clear();
|
2015-11-04 01:59:00 +00:00
|
|
|
|
var cards=get.cards(game.players.length);
|
|
|
|
|
var dialog=ui.create.dialog('五谷丰登',cards,true);
|
2015-11-09 03:15:16 +00:00
|
|
|
|
_status.dieClose.push(dialog);
|
2015-11-04 01:59:00 +00:00
|
|
|
|
dialog.videoId=lib.status.videoId++;
|
|
|
|
|
game.addVideo('cardDialog',null,['五谷丰登',get.cardsInfo(cards),dialog.videoId]);
|
2016-04-02 08:05:24 +00:00
|
|
|
|
event.getParent().preResult=dialog.videoId;
|
|
|
|
|
game.broadcast(function(cards,id){
|
|
|
|
|
var dialog=ui.create.dialog('五谷丰登',cards,true);
|
|
|
|
|
_status.dieClose.push(dialog);
|
|
|
|
|
dialog.videoId=id;
|
|
|
|
|
},cards,dialog.videoId);
|
2015-04-29 03:25:17 +00:00
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
2015-11-04 01:59:00 +00:00
|
|
|
|
for(var i=0;i<ui.dialogs.length;i++){
|
|
|
|
|
if(ui.dialogs[i].videoId==event.preResult){
|
2016-04-02 08:05:24 +00:00
|
|
|
|
event.dialog=ui.dialogs[i];break;
|
2015-11-04 01:59:00 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(!event.dialog){
|
|
|
|
|
event.finish();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if(event.dialog.buttons.length>1){
|
2016-04-02 08:05:24 +00:00
|
|
|
|
var next=target.chooseButton(true,function(button){
|
2015-11-04 01:59:00 +00:00
|
|
|
|
return ai.get.value(button.link,_status.event.player);
|
|
|
|
|
});
|
2016-04-02 08:05:24 +00:00
|
|
|
|
next.set('dialog',event.preResult);
|
|
|
|
|
next.set('closeDialog',false);
|
|
|
|
|
next.set('dialogdisplay',true);
|
2015-11-04 01:59:00 +00:00
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.directButton=event.dialog.buttons[0];
|
|
|
|
|
}
|
2015-04-29 03:25:17 +00:00
|
|
|
|
"step 1"
|
2015-11-04 01:59:00 +00:00
|
|
|
|
var dialog=event.dialog;
|
2016-04-02 08:05:24 +00:00
|
|
|
|
var card;
|
|
|
|
|
if(event.directButton){
|
|
|
|
|
card=event.directButton.link;
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
card=result.links[0];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var button;
|
|
|
|
|
for(var i=0;i<dialog.buttons.length;i++){
|
|
|
|
|
if(dialog.buttons[i].link==card){
|
|
|
|
|
button=dialog.buttons[i];
|
|
|
|
|
button.querySelector('.info').innerHTML=get.translation(target.name);
|
|
|
|
|
dialog.buttons.remove(button);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
var capt=get.translation(target)+'选择了'+get.translation(button.link);
|
|
|
|
|
if(card){
|
|
|
|
|
target.gain(card);
|
|
|
|
|
target.$gain2(card);
|
|
|
|
|
game.broadcast(function(card,id,name,capt){
|
|
|
|
|
var dialog=get.idDialog(id);
|
|
|
|
|
if(dialog){
|
|
|
|
|
dialog.content.firstChild.innerHTML=capt;
|
|
|
|
|
for(var i=0;i<dialog.buttons.length;i++){
|
|
|
|
|
if(dialog.buttons[i].link==card){
|
|
|
|
|
dialog.buttons[i].querySelector('.info').innerHTML=name;
|
|
|
|
|
dialog.buttons.splice(i--,1);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},card,dialog.videoId,get.translation(target.name),capt);
|
|
|
|
|
}
|
|
|
|
|
dialog.content.firstChild.innerHTML=capt;
|
2015-11-04 01:59:00 +00:00
|
|
|
|
game.addVideo('dialogCapt',null,[dialog.videoId,dialog.content.firstChild.innerHTML]);
|
2015-12-08 13:54:44 +00:00
|
|
|
|
game.log(target,'选择了',button.link);
|
2015-04-29 03:25:17 +00:00
|
|
|
|
game.delay();
|
|
|
|
|
},
|
|
|
|
|
contentAfter:function(){
|
2015-11-04 01:59:00 +00:00
|
|
|
|
for(var i=0;i<ui.dialogs.length;i++){
|
|
|
|
|
if(ui.dialogs[i].videoId==event.preResult){
|
|
|
|
|
ui.dialogs[i].close();
|
2015-11-09 03:15:16 +00:00
|
|
|
|
_status.dieClose.remove(ui.dialogs[i]);
|
2015-11-04 01:59:00 +00:00
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-04-02 08:05:24 +00:00
|
|
|
|
game.broadcast(function(id){
|
|
|
|
|
var dialog=get.idDialog(id);
|
|
|
|
|
if(dialog){
|
|
|
|
|
dialog.close();
|
|
|
|
|
_status.dieClose.remove(dialog);
|
|
|
|
|
}
|
|
|
|
|
},event.preResult);
|
2015-11-04 01:59:00 +00:00
|
|
|
|
game.addVideo('cardDialog',null,event.preResult);
|
2015-04-29 03:25:17 +00:00
|
|
|
|
},
|
|
|
|
|
ai:{
|
2015-05-02 14:43:52 +00:00
|
|
|
|
wuxie:function(){
|
|
|
|
|
if(Math.random()<0.5) return 0;
|
|
|
|
|
},
|
2015-04-29 03:25:17 +00:00
|
|
|
|
basic:{
|
|
|
|
|
order:3,
|
|
|
|
|
useful:1,
|
|
|
|
|
},
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
|
|
|
|
var num=0;
|
|
|
|
|
for(var i=0;i<game.players.length;i++){
|
|
|
|
|
if(game.players[i].ai.shown==0) num++;
|
|
|
|
|
}
|
|
|
|
|
if(num>1) return 0;
|
|
|
|
|
return 2-2*get.distance(player,target,'absolute')/game.players.length;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
tag:{
|
|
|
|
|
draw:1,
|
|
|
|
|
multitarget:1
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
taoyuan:{
|
2015-04-29 14:08:51 +00:00
|
|
|
|
audio:true,
|
2015-04-29 03:25:17 +00:00
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'trick',
|
|
|
|
|
enable:true,
|
|
|
|
|
selectTarget:-1,
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target.hp<target.maxHp;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
target.recover();
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
basic:{
|
|
|
|
|
order:9,
|
2015-11-30 13:08:29 +00:00
|
|
|
|
useful:[3,1],
|
2015-04-29 03:25:17 +00:00
|
|
|
|
value:0
|
|
|
|
|
},
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
|
|
|
|
return (target.hp<target.maxHp)?2:0;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
tag:{
|
|
|
|
|
recover:0.5,
|
|
|
|
|
multitarget:1
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
nanman:{
|
2015-04-29 14:08:51 +00:00
|
|
|
|
audio:true,
|
2015-04-29 03:25:17 +00:00
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'trick',
|
|
|
|
|
enable:true,
|
|
|
|
|
selectTarget:-1,
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target!=player;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
|
|
|
|
var next=target.chooseToRespond({name:'sha'});
|
2016-04-02 14:51:26 +00:00
|
|
|
|
next.set('ai',function(card){
|
|
|
|
|
var evt=_status.event.getParent();
|
|
|
|
|
if(ai.get.damageEffect(evt.target,evt.player,evt.target)>=0) return 0;
|
|
|
|
|
if(evt.player.get('s').contains('xinwuyan')) return 0;
|
|
|
|
|
if(evt.target.get('s').contains('xinwuyan')) return 0;
|
2015-04-29 03:25:17 +00:00
|
|
|
|
return 1;
|
2016-04-02 14:51:26 +00:00
|
|
|
|
});
|
2015-04-29 03:25:17 +00:00
|
|
|
|
next.autochoose=lib.filter.autoRespondSha;
|
|
|
|
|
"step 1"
|
|
|
|
|
if(result.bool==false){
|
|
|
|
|
target.damage();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
wuxie:function(target,card,player,viewer){
|
|
|
|
|
if(ai.get.attitude(viewer,target)>0&&target.num('h','sha')){
|
|
|
|
|
if(!target.num('h')||target.hp==1||Math.random()<0.7) return 0;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
basic:{
|
|
|
|
|
order:9,
|
|
|
|
|
useful:[5,1]
|
|
|
|
|
},
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
|
|
|
|
var num=0;
|
|
|
|
|
for(var i=0;i<game.players.length;i++){
|
|
|
|
|
if(game.players[i].ai.shown==0) num++;
|
|
|
|
|
}
|
|
|
|
|
if(num>1) return 0;
|
2015-12-06 15:23:47 +00:00
|
|
|
|
var nh=target.num('h');
|
2016-04-05 09:30:38 +00:00
|
|
|
|
if(get.mode()=='identity'){
|
2015-12-06 15:23:47 +00:00
|
|
|
|
if(target.isZhu&&nh<=2&&target.hp<=1) return -100;
|
|
|
|
|
}
|
|
|
|
|
if(nh==0) return -2;
|
|
|
|
|
if(nh==1) return -1.7
|
2015-04-29 03:25:17 +00:00
|
|
|
|
return -1.5;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
tag:{
|
|
|
|
|
respond:1,
|
|
|
|
|
respondSha:1,
|
|
|
|
|
damage:1,
|
|
|
|
|
multitarget:1,
|
|
|
|
|
multineg:1,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
wanjian:{
|
2015-04-29 14:08:51 +00:00
|
|
|
|
audio:true,
|
2015-04-29 03:25:17 +00:00
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'trick',
|
|
|
|
|
enable:true,
|
|
|
|
|
selectTarget:-1,
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target!=player;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
|
|
|
|
var next=target.chooseToRespond({name:'shan'});
|
2016-04-02 14:51:26 +00:00
|
|
|
|
next.set('ai',function(card){
|
|
|
|
|
var evt=_status.event.getParent();
|
|
|
|
|
if(ai.get.damageEffect(evt.target,evt.player,evt.target)>=0) return 0;
|
|
|
|
|
if(evt.player.get('s').contains('xinwuyan')) return 0;
|
|
|
|
|
if(evt.target.get('s').contains('xinwuyan')) return 0;
|
2015-04-29 03:25:17 +00:00
|
|
|
|
return 1;
|
2016-04-02 14:51:26 +00:00
|
|
|
|
});
|
2015-04-29 03:25:17 +00:00
|
|
|
|
next.autochoose=lib.filter.autoRespondShan;
|
|
|
|
|
"step 1"
|
|
|
|
|
if(result.bool==false){
|
|
|
|
|
target.damage();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
wuxie:function(target,card,player,viewer){
|
|
|
|
|
if(ai.get.attitude(viewer,target)>0&&target.num('h','shan')){
|
|
|
|
|
if(!target.num('h')||target.hp==1||Math.random()<0.7) return 0;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
basic:{
|
|
|
|
|
order:9,
|
|
|
|
|
useful:1
|
|
|
|
|
},
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
|
|
|
|
var num=0;
|
|
|
|
|
for(var i=0;i<game.players.length;i++){
|
|
|
|
|
if(game.players[i].ai.shown==0) num++;
|
|
|
|
|
}
|
|
|
|
|
if(num>1) return 0;
|
2015-12-06 15:23:47 +00:00
|
|
|
|
var nh=target.num('h');
|
2016-04-05 09:30:38 +00:00
|
|
|
|
if(get.mode()=='identity'){
|
2015-12-06 15:23:47 +00:00
|
|
|
|
if(target.isZhu&&nh<=2&&target.hp<=1) return -100;
|
|
|
|
|
}
|
|
|
|
|
if(nh==0) return -2;
|
|
|
|
|
if(nh==1) return -1.7
|
2015-04-29 03:25:17 +00:00
|
|
|
|
return -1.5;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
tag:{
|
|
|
|
|
respond:1,
|
|
|
|
|
respondShan:1,
|
|
|
|
|
damage:1,
|
|
|
|
|
multitarget:1,
|
|
|
|
|
multineg:1,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
wuzhong:{
|
2015-04-29 14:08:51 +00:00
|
|
|
|
audio:true,
|
2015-04-29 03:25:17 +00:00
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'trick',
|
|
|
|
|
enable:true,
|
|
|
|
|
selectTarget:-1,
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target==player;
|
|
|
|
|
},
|
2016-05-11 15:50:00 +00:00
|
|
|
|
modTarget:true,
|
2015-04-29 03:25:17 +00:00
|
|
|
|
content:function(){
|
|
|
|
|
target.draw(2);
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
basic:{
|
|
|
|
|
order:7.2,
|
|
|
|
|
useful:4,
|
2016-05-29 05:34:06 +00:00
|
|
|
|
value:9.2
|
2015-04-29 03:25:17 +00:00
|
|
|
|
},
|
|
|
|
|
result:{
|
|
|
|
|
target:2,
|
|
|
|
|
},
|
|
|
|
|
tag:{
|
|
|
|
|
draw:2
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
juedou:{
|
2015-04-29 14:08:51 +00:00
|
|
|
|
audio:true,
|
2015-04-29 03:25:17 +00:00
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'trick',
|
|
|
|
|
enable:true,
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target!=player;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
|
|
|
|
if(event.turn==undefined) event.turn=target;
|
|
|
|
|
"step 1"
|
|
|
|
|
event.trigger('juedou');
|
|
|
|
|
"step 2"
|
|
|
|
|
if(event.directHit){
|
|
|
|
|
event._result={bool:false};
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
var next=event.turn.chooseToRespond({name:'sha'});
|
|
|
|
|
next.ai=function(card){
|
2015-11-06 10:05:08 +00:00
|
|
|
|
if(player.get('s').contains('xinwuyan')) return 0;
|
|
|
|
|
if(target.get('s').contains('xinwuyan')) return 0;
|
2015-04-29 03:25:17 +00:00
|
|
|
|
if(event.turn==target){
|
2016-07-01 03:09:23 +00:00
|
|
|
|
if(player.hasSkill('naman')) return -1;
|
2015-04-29 03:25:17 +00:00
|
|
|
|
if(ai.get.attitude(target,player)<0){
|
|
|
|
|
return ai.get.unuseful2(card)
|
|
|
|
|
}
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
|
else{
|
2016-07-01 03:09:23 +00:00
|
|
|
|
if(target.hasSkill('naman')) return -1;
|
2015-04-29 03:25:17 +00:00
|
|
|
|
if(ai.get.attitude(player,target)<0){
|
|
|
|
|
return ai.get.unuseful2(card)
|
|
|
|
|
}
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
next.autochoose=lib.filter.autoRespondSha;
|
|
|
|
|
if(event.turn==target){
|
|
|
|
|
next.source=player;
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
next.source=target;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
"step 3"
|
2015-12-03 16:28:06 +00:00
|
|
|
|
if(event.target.isDead()||event.player.isDead()){
|
|
|
|
|
event.finish();
|
2015-04-29 03:25:17 +00:00
|
|
|
|
}
|
|
|
|
|
else{
|
2015-12-03 16:28:06 +00:00
|
|
|
|
if(result.bool){
|
|
|
|
|
if(event.turn==target) event.turn=player;
|
|
|
|
|
else event.turn=target;
|
|
|
|
|
event.goto(1);
|
2015-04-29 03:25:17 +00:00
|
|
|
|
}
|
|
|
|
|
else{
|
2015-12-03 16:28:06 +00:00
|
|
|
|
if(event.turn==target){
|
|
|
|
|
target.damage();
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
player.damage(target);
|
|
|
|
|
}
|
2015-04-29 03:25:17 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
basic:{
|
|
|
|
|
order:5,
|
|
|
|
|
useful:1,
|
2015-12-07 11:15:35 +00:00
|
|
|
|
value:4.5
|
2015-04-29 03:25:17 +00:00
|
|
|
|
},
|
|
|
|
|
result:{
|
|
|
|
|
target:-1.5,
|
|
|
|
|
player:function(player,target){
|
|
|
|
|
if(ai.get.damageEffect(target,player,target)>0&&ai.get.attitude(player,target)>0&&ai.get.attitude(target,player)>0){
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
2015-08-15 09:10:06 +00:00
|
|
|
|
var hs1=target.get('h','sha');
|
|
|
|
|
var hs2=player.get('h','sha');
|
2015-06-10 09:10:24 +00:00
|
|
|
|
if(hs1.length>hs2.length+1){
|
|
|
|
|
return -2;
|
|
|
|
|
}
|
2015-08-15 09:10:06 +00:00
|
|
|
|
if(hs1.length>hs2.length&&(!hs2.length||hs1[0].number>hs2[0].number)){
|
2015-06-10 09:10:24 +00:00
|
|
|
|
return -2;
|
2015-04-29 03:25:17 +00:00
|
|
|
|
}
|
|
|
|
|
return -0.5;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
tag:{
|
|
|
|
|
respond:2,
|
|
|
|
|
respondSha:2,
|
|
|
|
|
damage:1,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
shunshou:{
|
2015-04-29 14:08:51 +00:00
|
|
|
|
audio:true,
|
2015-04-29 03:25:17 +00:00
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'trick',
|
|
|
|
|
enable:true,
|
|
|
|
|
range:{global:1},
|
|
|
|
|
selectTarget:1,
|
2016-06-11 02:51:33 +00:00
|
|
|
|
postAi:function(targets){
|
|
|
|
|
return targets.length==1&&targets[0].num('j');
|
|
|
|
|
},
|
2015-04-29 03:25:17 +00:00
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
if(player==target) return false;
|
|
|
|
|
return (target.num('hej')>0);
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
if(target.num('hej')){
|
2015-05-01 08:39:13 +00:00
|
|
|
|
player.gainPlayerCard('hej',target,true);
|
2015-04-29 03:25:17 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
wuxie:function(target,card,player,viewer){
|
|
|
|
|
if(ai.get.attitude(viewer,player)>0&&ai.get.attitude(viewer,target)>0){
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
basic:{
|
|
|
|
|
order:7.5,
|
|
|
|
|
useful:4,
|
|
|
|
|
value:9
|
|
|
|
|
},
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
|
|
|
|
if(ai.get.attitude(player,target)<=0) return (target.num('he')>0)?-1.5:1.5;
|
|
|
|
|
var js=target.get('j');
|
|
|
|
|
if(js.length){
|
|
|
|
|
var jj=js[0].viewAs?{name:js[0].viewAs}:js[0];
|
|
|
|
|
if(jj.name=='shunshou') return 3;
|
|
|
|
|
if(js.length==1&&ai.get.effect(target,jj,target,player)>=0){
|
|
|
|
|
return -1.5;
|
|
|
|
|
}
|
|
|
|
|
return 3;
|
|
|
|
|
}
|
|
|
|
|
return -1.5;
|
|
|
|
|
},
|
2015-11-06 10:05:08 +00:00
|
|
|
|
player:function(player,target){
|
|
|
|
|
if(ai.get.attitude(player,target)<0&&!target.num('he')){
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
if(ai.get.attitude(player,target)>1){
|
|
|
|
|
var js=target.get('j');
|
|
|
|
|
if(js.length){
|
|
|
|
|
var jj=js[0].viewAs?{name:js[0].viewAs}:js[0];
|
|
|
|
|
if(jj.name=='shunshou') return 1;
|
|
|
|
|
if(js.length==1&&ai.get.effect(target,jj,target,player)>=0){
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
2015-04-29 03:25:17 +00:00
|
|
|
|
},
|
|
|
|
|
tag:{
|
|
|
|
|
loseCard:1,
|
|
|
|
|
gain:1,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
guohe:{
|
2015-04-29 14:08:51 +00:00
|
|
|
|
audio:true,
|
2015-04-29 03:25:17 +00:00
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'trick',
|
|
|
|
|
enable:true,
|
|
|
|
|
selectTarget:1,
|
2016-06-11 02:51:33 +00:00
|
|
|
|
postAi:function(targets){
|
|
|
|
|
return targets.length==1&&targets[0].num('j');
|
|
|
|
|
},
|
2015-04-29 03:25:17 +00:00
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
if(player==target) return false;
|
|
|
|
|
return (target.num('hej')>0);
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
if(target.num('hej')){
|
2015-05-01 08:39:13 +00:00
|
|
|
|
player.discardPlayerCard('hej',target,true);
|
2015-04-29 03:25:17 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
basic:{
|
|
|
|
|
order:9,
|
|
|
|
|
useful:1,
|
|
|
|
|
value:5,
|
|
|
|
|
},
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
2015-12-06 15:23:47 +00:00
|
|
|
|
var es=target.get('e');
|
|
|
|
|
var nh=target.num('h');
|
2016-04-15 16:20:05 +00:00
|
|
|
|
var noe=(es.length==0||target.hasSkillTag('noe'));
|
2015-12-06 15:23:47 +00:00
|
|
|
|
var noe2=(es.length==1&&es[0].name=='baiyin'&&target.hp<target.maxHp);
|
|
|
|
|
var noh=(nh==0||target.hasSkillTag('noh'));
|
|
|
|
|
if(noh&&noe) return 0;
|
|
|
|
|
if(noh&&noe2) return 0.01;
|
2015-04-29 03:25:17 +00:00
|
|
|
|
if(ai.get.attitude(player,target)<=0) return (target.num('he'))?-1.5:1.5;
|
|
|
|
|
var js=target.get('j');
|
|
|
|
|
if(js.length){
|
|
|
|
|
var jj=js[0].viewAs?{name:js[0].viewAs}:js[0];
|
|
|
|
|
if(jj.name=='guohe') return 3;
|
|
|
|
|
if(js.length==1&&ai.get.effect(target,jj,target,player)>=0){
|
|
|
|
|
return -1.5;
|
|
|
|
|
}
|
|
|
|
|
return 2;
|
|
|
|
|
}
|
|
|
|
|
return -1.5;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
tag:{
|
|
|
|
|
loseCard:1,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
jiedao:{
|
2015-04-29 14:08:51 +00:00
|
|
|
|
audio:true,
|
2015-04-29 03:25:17 +00:00
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'trick',
|
|
|
|
|
enable:true,
|
|
|
|
|
selectTarget:2,
|
|
|
|
|
multitarget:true,
|
|
|
|
|
targetprompt:['被借刀','出杀目标'],
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
if(ui.selected.targets.length==0){
|
|
|
|
|
return (player!=target&&target.get('e',{subtype:'equip1'}).length);
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
return lib.filter.filterTarget({name:'sha'},ui.selected.targets[0],target);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
2016-04-04 05:29:08 +00:00
|
|
|
|
targets[0].chooseToUse('对'+get.translation(targets[1])+'使用一张杀,或令'+get.translation(player)+'获得你的武器牌',
|
2016-04-06 06:09:27 +00:00
|
|
|
|
{name:'sha'},targets[1],-1).set('targetRequired',true);
|
2015-04-29 03:25:17 +00:00
|
|
|
|
"step 1"
|
|
|
|
|
if(result.bool==false){
|
|
|
|
|
player.gain(targets[0].get('e',{subtype:'equip1'}));
|
|
|
|
|
targets[0].$give(targets[0].get('e',{subtype:'equip1'}),player);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
basic:{
|
|
|
|
|
order:8,
|
|
|
|
|
value:2,
|
|
|
|
|
useful:1,
|
|
|
|
|
},
|
|
|
|
|
result:{
|
|
|
|
|
target:-1.5,
|
|
|
|
|
player:function(player){
|
|
|
|
|
if(player.get('he',{subtype:'equip1'}).length) return 0;
|
|
|
|
|
return 1.5;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
tag:{
|
|
|
|
|
gain:1,
|
|
|
|
|
use:1,
|
|
|
|
|
useSha:1,
|
|
|
|
|
multitarget:1,
|
|
|
|
|
multineg:1,
|
|
|
|
|
loseCard:1,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
wuxie:{
|
2015-04-29 14:08:51 +00:00
|
|
|
|
audio:true,
|
2015-04-29 03:25:17 +00:00
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'trick',
|
|
|
|
|
ai:{
|
|
|
|
|
basic:{
|
|
|
|
|
useful:[6,4],
|
|
|
|
|
value:[6,4],
|
|
|
|
|
},
|
|
|
|
|
result:{player:1},
|
|
|
|
|
expose:0.2
|
|
|
|
|
},
|
|
|
|
|
notarget:true,
|
2016-04-02 08:05:24 +00:00
|
|
|
|
content:function(){
|
|
|
|
|
event.result='wuxied';
|
2016-04-11 10:14:04 +00:00
|
|
|
|
if(player.isOnline()){
|
|
|
|
|
player.send(function(player){
|
|
|
|
|
if(ui.tempnowuxie&&!player.hasWuxie()){
|
|
|
|
|
ui.tempnowuxie.close();
|
|
|
|
|
delete ui.tempnowuxie;
|
|
|
|
|
}
|
|
|
|
|
},player);
|
|
|
|
|
}
|
|
|
|
|
else if(player==game.me){
|
|
|
|
|
if(ui.tempnowuxie&&!player.hasWuxie()){
|
|
|
|
|
ui.tempnowuxie.close();
|
|
|
|
|
delete ui.tempnowuxie;
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-04-02 08:05:24 +00:00
|
|
|
|
},
|
2015-04-29 03:25:17 +00:00
|
|
|
|
},
|
|
|
|
|
lebu:{
|
2015-04-29 14:08:51 +00:00
|
|
|
|
audio:true,
|
2015-04-29 03:25:17 +00:00
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'delay',
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return (lib.filter.judge(card,player,target)&&player!=target);
|
|
|
|
|
},
|
|
|
|
|
judge:function(card){
|
|
|
|
|
if(get.suit(card)=='heart') return 0;
|
|
|
|
|
return -3;
|
|
|
|
|
},
|
|
|
|
|
effect:function(){
|
|
|
|
|
if(result.bool==false){
|
|
|
|
|
player.skip('phaseUse');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
basic:{
|
|
|
|
|
order:1,
|
|
|
|
|
useful:1,
|
|
|
|
|
value:8,
|
|
|
|
|
},
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
|
|
|
|
var num=target.hp-target.num('h')-2;
|
2015-12-06 15:23:47 +00:00
|
|
|
|
if(num>-1) return -0.01;
|
2015-04-29 03:25:17 +00:00
|
|
|
|
if(target.hp<3) num--;
|
2015-11-30 13:08:29 +00:00
|
|
|
|
if(target.isTurnedOver()) num/=2;
|
2015-12-06 15:23:47 +00:00
|
|
|
|
var dist=get.distance(player,target,'absolute');
|
|
|
|
|
if(dist<1) dist=1;
|
|
|
|
|
return num/Math.sqrt(dist);
|
2015-04-29 03:25:17 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
tag:{
|
|
|
|
|
skip:'phaseUse'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
shandian:{
|
2015-04-29 14:08:51 +00:00
|
|
|
|
audio:true,
|
2015-04-29 03:25:17 +00:00
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'delay',
|
|
|
|
|
enable:function(card,player){
|
|
|
|
|
return (lib.filter.judge(card,player,player));
|
|
|
|
|
},
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return (lib.filter.judge(card,player,target)&&player==target);
|
|
|
|
|
},
|
|
|
|
|
selectTarget:[-1,-1],
|
|
|
|
|
judge:function(card){
|
|
|
|
|
if(get.suit(card)=='spade'&&get.number(card)>1&&get.number(card)<10) return -6;
|
|
|
|
|
return 0;
|
|
|
|
|
},
|
|
|
|
|
effect:function(){
|
|
|
|
|
if(result.judge){
|
|
|
|
|
player.damage(3,'thunder','nosource');
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
if(!card.expired){
|
2015-06-27 16:21:25 +00:00
|
|
|
|
var target=player.next;
|
2015-12-10 15:57:45 +00:00
|
|
|
|
for(var iwhile=0;iwhile<10;iwhile++){
|
|
|
|
|
if(target.num('j','shandian')){
|
|
|
|
|
target=target.next;
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
break;
|
|
|
|
|
}
|
2015-06-27 16:21:25 +00:00
|
|
|
|
}
|
2015-12-10 15:57:45 +00:00
|
|
|
|
if(target.num('j','shandian')||target==player){
|
|
|
|
|
ui.discardPile.appendChild(card);
|
2015-04-29 03:25:17 +00:00
|
|
|
|
}
|
|
|
|
|
else{
|
2015-12-10 15:57:45 +00:00
|
|
|
|
if(card.name!='shandian'){
|
|
|
|
|
target.addJudge('shandian',card);
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
target.addJudge(card);
|
|
|
|
|
}
|
2015-04-29 03:25:17 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
card.expired=false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
cancel:function(){
|
|
|
|
|
if(!card.expired){
|
2015-06-27 16:21:25 +00:00
|
|
|
|
var target=player.next;
|
2015-12-10 15:57:45 +00:00
|
|
|
|
for(var iwhile=0;iwhile<10;iwhile++){
|
|
|
|
|
if(target.num('j','shandian')){
|
|
|
|
|
target=target.next;
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
break;
|
|
|
|
|
}
|
2015-06-27 16:21:25 +00:00
|
|
|
|
}
|
2015-12-10 15:57:45 +00:00
|
|
|
|
if(target.num('j','shandian')||target==player){
|
|
|
|
|
ui.discardPile.appendChild(card);
|
2015-06-27 16:21:25 +00:00
|
|
|
|
}
|
|
|
|
|
else{
|
2015-12-10 15:57:45 +00:00
|
|
|
|
if(card.name!='shandian'){
|
|
|
|
|
target.addJudge('shandian',card);
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
target.addJudge(card);
|
|
|
|
|
}
|
2015-06-27 16:21:25 +00:00
|
|
|
|
}
|
2015-04-29 03:25:17 +00:00
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
card.expired=false;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
basic:{
|
|
|
|
|
order:1,
|
|
|
|
|
useful:0,
|
|
|
|
|
value:0,
|
|
|
|
|
},
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
|
|
|
|
var rejudge,num=0;
|
|
|
|
|
for(var i=0;i<game.players.length;i++){
|
|
|
|
|
for(var j=0;j<game.players[i].skills.length;j++){
|
|
|
|
|
rejudge=get.tag(game.players[i].skills[j],'rejudge',game.players[i]);
|
|
|
|
|
if(rejudge!=undefined){
|
|
|
|
|
if(ai.get.attitude(target,game.players[i])>0&&
|
|
|
|
|
ai.get.attitude(game.players[i],target)>0) num+=rejudge;
|
|
|
|
|
else num-=rejudge;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(num>0) return num;
|
|
|
|
|
if(num==0){
|
2016-04-05 09:30:38 +00:00
|
|
|
|
var mode=get.mode();
|
|
|
|
|
if(mode=='identity'){
|
2015-04-29 03:25:17 +00:00
|
|
|
|
if(target.identity=='nei') return 1;
|
|
|
|
|
var situ=ai.get.situation();
|
|
|
|
|
if(target.identity=='fan'){
|
|
|
|
|
if(situ>1) return 1;
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
if(situ<-1) return 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-04-05 09:30:38 +00:00
|
|
|
|
else if(mode=='guozhan'){
|
2015-04-29 03:25:17 +00:00
|
|
|
|
if(target.identity=='ye') return 1;
|
|
|
|
|
for(var i=0;i<game.players.length;i++){
|
|
|
|
|
if(game.players[i].identity=='unknown') return -1;
|
|
|
|
|
}
|
|
|
|
|
if(get.population(target.identity)==1){
|
|
|
|
|
if(target.maxHp>2&&target.hp<2) return 1;
|
|
|
|
|
if(game.players.length<3) return -1;
|
|
|
|
|
if(target.hp<=2&&target.num('he')<=3) return 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
tag:{
|
|
|
|
|
// damage:1,
|
|
|
|
|
// natureDamage:1,
|
|
|
|
|
// thunderDamage:1,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2016-07-05 14:11:33 +00:00
|
|
|
|
hanbing:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:"equip",
|
|
|
|
|
subtype:"equip1",
|
|
|
|
|
distance:{attackFrom:-1},
|
|
|
|
|
skills:['hanbing_skill'],
|
|
|
|
|
ai:{
|
|
|
|
|
basic:{
|
|
|
|
|
equipValue:2
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
renwang:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:"equip",
|
|
|
|
|
subtype:"equip2",
|
|
|
|
|
skills:['renwang_skill'],
|
|
|
|
|
ai:{
|
|
|
|
|
basic:{
|
|
|
|
|
equipValue:8
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
2015-04-29 03:25:17 +00:00
|
|
|
|
},
|
|
|
|
|
skill:{
|
2016-07-05 14:11:33 +00:00
|
|
|
|
hanbing_skill:{
|
|
|
|
|
trigger:{player:'shaHit'},
|
|
|
|
|
direct:true,
|
|
|
|
|
audio:true,
|
|
|
|
|
filter:function(event){
|
|
|
|
|
return event.target.get('he').length>0;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
|
|
|
|
player.choosePlayerCard('是否发动【寒冰剑】?','he',trigger.target,Math.min(2,trigger.target.num('he')),function(button){
|
|
|
|
|
var trigger=_status.event.getTrigger();
|
|
|
|
|
var player=_status.event.player;
|
|
|
|
|
var eff=ai.get.damageEffect(trigger.target,player,player);
|
|
|
|
|
if(ai.get.attitude(player,trigger.target)>0){
|
|
|
|
|
if(eff>=0) return false;
|
|
|
|
|
return 10-ai.get.buttonValue(button);
|
|
|
|
|
}
|
|
|
|
|
if(eff<=0) return ai.get.buttonValue(button);
|
|
|
|
|
if(trigger.target.hp==1) return false;
|
|
|
|
|
if(player.skills.contains('jiu')||player.skills.contains('tianxianjiu')||
|
|
|
|
|
player.skills.contains('luoyi2')||player.skills.contains('reluoyi2')) return false;
|
|
|
|
|
if(_status.event.dialog.buttons.length<2) return -1;
|
|
|
|
|
var num=0;
|
|
|
|
|
for(var i=0;i<_status.event.dialog.buttons.length;i++){
|
|
|
|
|
if(ai.get.buttonValue(_status.event.dialog.buttons[i])>1.5) num++;
|
|
|
|
|
}
|
|
|
|
|
if(num>=2) return ai.get.buttonValue(button)-1.5;
|
|
|
|
|
});
|
|
|
|
|
"step 1"
|
|
|
|
|
if(result.bool){
|
|
|
|
|
trigger.untrigger();
|
|
|
|
|
var cards=[];
|
|
|
|
|
for(var i=0;i<result.links.length;i++) cards.push(result.links[i]);
|
|
|
|
|
player.logSkill('hanbing_skill');
|
|
|
|
|
trigger.unhurt=true;
|
|
|
|
|
trigger.target.discard(cards);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
renwang_skill:{
|
|
|
|
|
trigger:{target:'shaBefore'},
|
|
|
|
|
forced:true,
|
|
|
|
|
priority:6,
|
|
|
|
|
audio:true,
|
|
|
|
|
filter:function(event){
|
|
|
|
|
if(event.player.num('s','unequip')) return false;
|
|
|
|
|
return (event.card.name=='sha'&&get.color(event.card)=='black')
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
trigger.untrigger();
|
|
|
|
|
trigger.finish();
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
effect:{
|
|
|
|
|
target:function(card,player){
|
|
|
|
|
var equip1=player.get('e','1');
|
|
|
|
|
if(equip1&&equip1.name=='qinggang') return 1;
|
|
|
|
|
if(player.num('s','unequip')) return;
|
|
|
|
|
if(card.name=='sha'&&get.color(card)=='black') return 'zerotarget';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2015-04-29 03:25:17 +00:00
|
|
|
|
zhuge_skill:{
|
|
|
|
|
mod:{
|
|
|
|
|
cardUsable:function(card,player,num){
|
|
|
|
|
if(card.name=='sha') return Infinity;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
cixiong_skill:{
|
|
|
|
|
trigger:{player:'shaBegin'},
|
|
|
|
|
priority:5,
|
2015-05-14 09:23:45 +00:00
|
|
|
|
audio:true,
|
2015-04-29 03:25:17 +00:00
|
|
|
|
filter:function(event,player){
|
|
|
|
|
if(player.sex=='male'&&event.target.sex=='female') return true;
|
|
|
|
|
if(player.sex=='female'&&event.target.sex=='male') return true;
|
|
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
2016-04-02 14:51:26 +00:00
|
|
|
|
trigger.target.chooseToDiscard().set('ai',function(card){
|
2016-05-07 03:12:04 +00:00
|
|
|
|
var trigger=_status.event.getTrigger();
|
2016-04-02 14:51:26 +00:00
|
|
|
|
return -ai.get.attitude(trigger.target,trigger.player)-ai.get.value(card);
|
|
|
|
|
});
|
2015-04-29 03:25:17 +00:00
|
|
|
|
"step 1"
|
|
|
|
|
if(result.bool==false) player.draw();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
qinggang_skill:{
|
|
|
|
|
trigger:{player:'useCard'},
|
|
|
|
|
forced:true,
|
|
|
|
|
priority:10,
|
|
|
|
|
filter:function(event){
|
|
|
|
|
return event.card.name=='sha';
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.addTempSkill('unequip','useCardAfter');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
qinglong_skill:{
|
|
|
|
|
trigger:{player:'shaMiss'},
|
|
|
|
|
direct:true,
|
2016-04-04 14:15:58 +00:00
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.canUse('sha',event.target);
|
|
|
|
|
},
|
2015-04-29 03:25:17 +00:00
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
2015-11-09 17:04:18 +00:00
|
|
|
|
if(player.skills.contains('jiu')){
|
2016-04-04 11:20:05 +00:00
|
|
|
|
game.broadcastAll(function(player){
|
|
|
|
|
player.removeSkill('jiu');
|
|
|
|
|
if(player.node.jiu){
|
|
|
|
|
player.node.jiu.delete();
|
|
|
|
|
player.node.jiu2.delete();
|
|
|
|
|
delete player.node.jiu;
|
|
|
|
|
delete player.node.jiu2;
|
|
|
|
|
}
|
|
|
|
|
},player);
|
2015-11-09 17:04:18 +00:00
|
|
|
|
event.jiu=true;
|
|
|
|
|
}
|
2015-11-21 05:30:26 +00:00
|
|
|
|
player.chooseToUse('是否发动青龙偃月刀?',{name:'sha'},trigger.target,-1).logSkill='qinglong';
|
2015-04-29 03:25:17 +00:00
|
|
|
|
"step 1"
|
2016-04-04 05:29:08 +00:00
|
|
|
|
if(result.bool);
|
2015-11-09 17:04:18 +00:00
|
|
|
|
else if(event.jiu){
|
|
|
|
|
player.addSkill('jiu');
|
|
|
|
|
}
|
2015-04-29 03:25:17 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
zhangba_skill:{
|
|
|
|
|
enable:['chooseToUse','chooseToRespond'],
|
|
|
|
|
filterCard:true,
|
|
|
|
|
selectCard:2,
|
|
|
|
|
position:'h',
|
|
|
|
|
viewAs:{name:'sha'},
|
2016-07-01 03:09:23 +00:00
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.num('h')>=2;
|
|
|
|
|
},
|
2015-05-14 09:23:45 +00:00
|
|
|
|
audio:true,
|
2015-04-29 03:25:17 +00:00
|
|
|
|
prompt:'将两张手牌当杀使用或打出',
|
2016-01-24 08:34:21 +00:00
|
|
|
|
check:function(card){
|
|
|
|
|
if(card.name=='sha') return 0;
|
|
|
|
|
return 6-ai.get.useful(card)
|
|
|
|
|
},
|
2015-04-29 03:25:17 +00:00
|
|
|
|
ai:{
|
|
|
|
|
respondSha:true,
|
2016-07-01 07:34:40 +00:00
|
|
|
|
skillTagFilter:function(player){
|
2016-07-01 03:09:23 +00:00
|
|
|
|
return player.num('h')>=2;
|
|
|
|
|
},
|
2015-04-29 03:25:17 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
guanshi_skill:{
|
|
|
|
|
trigger:{player:'shaMiss'},
|
|
|
|
|
direct:true,
|
2015-05-14 09:23:45 +00:00
|
|
|
|
audio:true,
|
2015-04-29 03:25:17 +00:00
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.num('he')>2;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
2015-11-21 05:30:26 +00:00
|
|
|
|
var next=player.chooseToDiscard('是否发动贯石斧?',2,'he',function(card){
|
2016-04-02 14:51:26 +00:00
|
|
|
|
return _status.event.player.get('e',{subtype:'equip1'}).contains(card)==false;
|
2015-11-21 05:30:26 +00:00
|
|
|
|
});
|
|
|
|
|
next.logSkill='guanshi_skill';
|
2016-04-02 14:51:26 +00:00
|
|
|
|
next.set('ai',function(card){
|
|
|
|
|
var evt=_status.event.getParent();
|
|
|
|
|
if(ai.get.attitude(evt.player,evt._trigger.target)<0){
|
|
|
|
|
if(evt.player.skills.contains('jiu')||
|
|
|
|
|
evt.player.skills.contains('tianxianjiu')||
|
|
|
|
|
evt._trigger.target.hp==1){
|
2015-11-06 10:05:08 +00:00
|
|
|
|
return 8-ai.get.value(card)
|
2015-04-29 03:25:17 +00:00
|
|
|
|
}
|
|
|
|
|
return 5-ai.get.value(card)
|
|
|
|
|
}
|
|
|
|
|
return -1;
|
2016-04-02 14:51:26 +00:00
|
|
|
|
});
|
2015-04-29 03:25:17 +00:00
|
|
|
|
"step 1"
|
|
|
|
|
if(result.bool){
|
|
|
|
|
trigger.untrigger();
|
|
|
|
|
trigger.trigger('shaHit');
|
|
|
|
|
trigger._result.bool=false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
fangtian_skill:{
|
|
|
|
|
mod:{
|
|
|
|
|
selectTarget:function(card,player,range){
|
|
|
|
|
if(card.name!='sha') return;
|
|
|
|
|
if(range[1]==-1) return;
|
|
|
|
|
var cards=player.get('h');
|
|
|
|
|
for(var i=0;i<cards.length;i++){
|
|
|
|
|
if(cards[i].classList.contains('selected')==false)
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
range[1]+=2;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
qilin_skill:{
|
|
|
|
|
trigger:{player:'shaHit'},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return event.target.get('e',{subtype:['equip3','equip4']}).length>0
|
|
|
|
|
},
|
2015-05-14 09:23:45 +00:00
|
|
|
|
direct:true,
|
|
|
|
|
audio:true,
|
2015-04-29 03:25:17 +00:00
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
2015-11-06 10:05:08 +00:00
|
|
|
|
var att=(ai.get.attitude(player,trigger.target)<=0);
|
2016-04-02 14:51:26 +00:00
|
|
|
|
var next=player.chooseButton();
|
|
|
|
|
next.set('att',att);
|
|
|
|
|
next.set('createDialog',['选择要弃置的马',trigger.target.get('e',{subtype:['equip3','equip4']})]);
|
|
|
|
|
next.set('ai',function(button){
|
|
|
|
|
if(_status.event.att) return ai.get.buttonValue(button);
|
2015-11-06 10:05:08 +00:00
|
|
|
|
return 0;
|
2016-04-02 14:51:26 +00:00
|
|
|
|
});
|
2015-04-29 03:25:17 +00:00
|
|
|
|
"step 1"
|
|
|
|
|
if(result.bool){
|
2015-05-14 09:23:45 +00:00
|
|
|
|
player.logSkill('qilin_skill');
|
2016-04-02 14:51:26 +00:00
|
|
|
|
trigger.target.discard(result.links[0]);
|
2015-04-29 03:25:17 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
bagua_skill:{
|
|
|
|
|
trigger:{player:'chooseToRespondBegin'},
|
|
|
|
|
filter:function(event,player){
|
2015-11-21 05:30:26 +00:00
|
|
|
|
if(event.responded) return false;
|
2015-04-29 03:25:17 +00:00
|
|
|
|
if(!event.filterCard({name:'shan'})) return false;
|
2016-04-02 08:05:24 +00:00
|
|
|
|
if(event.getParent().player.num('s','unequip')) return false;
|
2015-04-29 03:25:17 +00:00
|
|
|
|
return true;
|
|
|
|
|
},
|
2015-05-14 09:23:45 +00:00
|
|
|
|
audio:true,
|
2016-07-17 03:28:46 +00:00
|
|
|
|
check:function(event,player){
|
|
|
|
|
if(ai.get.damageEffect(player,event.player,player)>=0) return false;
|
|
|
|
|
return true;
|
|
|
|
|
},
|
2015-04-29 03:25:17 +00:00
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
|
|
|
|
player.judge('bagua',function(card){return (get.color(card)=='red')?1.5:-0.5});
|
|
|
|
|
"step 1"
|
|
|
|
|
if(result.judge>0){
|
|
|
|
|
trigger.untrigger();
|
|
|
|
|
trigger.responded=true;
|
|
|
|
|
trigger.result={bool:true,card:{name:'shan'}}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
effect:{
|
|
|
|
|
target:function(card,player,target,effect){
|
|
|
|
|
if(player.num('s','unequip')) return;
|
|
|
|
|
if(get.tag(card,'respondShan')) return 0.5;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2016-04-02 08:05:24 +00:00
|
|
|
|
_wuxie:{
|
|
|
|
|
trigger:{player:['useCardToBefore','phaseJudge']},
|
|
|
|
|
priority:5,
|
|
|
|
|
popup:false,
|
|
|
|
|
forced:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
if(event.name!='phaseJudge'){
|
|
|
|
|
if(!event.target) return false;
|
|
|
|
|
if(get.type(event.card)!='trick') return false;
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
if(trigger.multitarget){
|
|
|
|
|
event.targets=trigger.targets;
|
|
|
|
|
}
|
|
|
|
|
event.target=trigger.target;
|
2016-04-13 04:17:17 +00:00
|
|
|
|
if(event.triggername=='phaseJudge'){
|
|
|
|
|
event.target=trigger.player;
|
|
|
|
|
}
|
2016-06-02 13:13:57 +00:00
|
|
|
|
event.sourcex=event.targets||event.target;
|
|
|
|
|
if(!event.targets&&trigger.targets&&trigger.targets.length==1){
|
|
|
|
|
event.sourcex2=trigger.player;
|
|
|
|
|
}
|
2016-04-02 08:05:24 +00:00
|
|
|
|
event.source=trigger.player;
|
|
|
|
|
event.state=true;
|
|
|
|
|
event.card=trigger.card;
|
2016-04-03 09:03:46 +00:00
|
|
|
|
event._global_waiting=true;
|
2016-04-09 07:58:45 +00:00
|
|
|
|
event.tempnowuxie=(trigger.targets&&trigger.targets.length>1&&!trigger.multitarget);
|
2016-04-05 05:18:30 +00:00
|
|
|
|
event.filterCard=function(card,player){
|
|
|
|
|
if(card.name!='wuxie') return false;
|
|
|
|
|
var mod=game.checkMod(card,player,'unchanged','cardEnabled',player.get('s'));
|
|
|
|
|
if(mod!='unchanged') return mod;
|
|
|
|
|
return true;
|
|
|
|
|
};
|
2016-04-13 04:17:17 +00:00
|
|
|
|
event.send=function(player,state,isJudge,card,source,target,targets,id,id2,tempnowuxie,skillState){
|
|
|
|
|
if(skillState){
|
|
|
|
|
player.applySkills(skillState);
|
|
|
|
|
}
|
2016-04-02 14:51:26 +00:00
|
|
|
|
state=state?1:-1;
|
2016-04-02 08:05:24 +00:00
|
|
|
|
var str='';
|
|
|
|
|
if(isJudge){
|
|
|
|
|
str+=get.translation(source)+'的';
|
|
|
|
|
}
|
2016-04-13 04:17:17 +00:00
|
|
|
|
if(isJudge){
|
|
|
|
|
str+=get.translation(card,'viewAs');
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
str+=get.translation(card);
|
|
|
|
|
}
|
2016-04-15 16:20:05 +00:00
|
|
|
|
if((targets||target)&&!isJudge){
|
2016-04-02 08:05:24 +00:00
|
|
|
|
str+='对'+get.translation(targets||target);
|
|
|
|
|
}
|
2016-04-03 13:38:37 +00:00
|
|
|
|
str+='将'+(state>0?'生效':'失效')+',是否无懈?';
|
2016-04-06 03:07:53 +00:00
|
|
|
|
|
|
|
|
|
if(player.isUnderControl(true)&&!_status.auto&&!ui.tempnowuxie&&tempnowuxie){
|
2016-07-16 03:32:55 +00:00
|
|
|
|
var translation=get.translation(card.name);
|
|
|
|
|
if(translation.length>=4){
|
|
|
|
|
translation=translation.slice(0,2);
|
|
|
|
|
}
|
|
|
|
|
ui.tempnowuxie=ui.create.control('不无懈'+translation,ui.click.tempnowuxie);
|
2016-04-06 03:07:53 +00:00
|
|
|
|
ui.tempnowuxie._origin=id2;
|
|
|
|
|
}
|
2016-04-04 12:52:33 +00:00
|
|
|
|
var next=player.chooseToUse({
|
2016-04-02 08:05:24 +00:00
|
|
|
|
filterCard:function(card,player){
|
|
|
|
|
if(card.name!='wuxie') return false;
|
|
|
|
|
var mod=game.checkMod(card,player,'unchanged','cardEnabled',player.get('s'));
|
|
|
|
|
if(mod!='unchanged') return mod;
|
|
|
|
|
return true;
|
|
|
|
|
},
|
|
|
|
|
prompt:str,
|
|
|
|
|
type:'wuxie',
|
|
|
|
|
state:state,
|
2016-04-13 04:17:17 +00:00
|
|
|
|
_global_waiting:true,
|
2016-04-02 08:05:24 +00:00
|
|
|
|
ai1:function(){
|
|
|
|
|
if(isJudge){
|
2016-04-11 06:13:35 +00:00
|
|
|
|
var name=card.viewAs||card.name;
|
|
|
|
|
var info=lib.card[name];
|
2016-04-02 08:05:24 +00:00
|
|
|
|
if(info&&info.ai&&info.ai.wuxie){
|
|
|
|
|
var aiii=info.ai.wuxie(source,card,source,_status.event.player,state);
|
|
|
|
|
if(typeof aiii=='number') return aiii;
|
|
|
|
|
}
|
|
|
|
|
if(Math.abs(ai.get.attitude(_status.event.player,source))<3) return 0;
|
|
|
|
|
if(source.skills.contains('guanxing')) return 0;
|
2016-04-11 06:13:35 +00:00
|
|
|
|
if(name!='lebu'&&name!='bingliang'){
|
2016-04-02 08:05:24 +00:00
|
|
|
|
if(source!=_status.event.player){
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-04-11 06:13:35 +00:00
|
|
|
|
var card2;
|
|
|
|
|
if(name!=card.name){
|
|
|
|
|
card2={name:name};
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
card2=card;
|
|
|
|
|
}
|
|
|
|
|
var eff=ai.get.effect(source,card2,source,source);
|
2016-04-02 08:05:24 +00:00
|
|
|
|
if(eff>=0) return 0;
|
|
|
|
|
return state*ai.get.attitude(_status.event.player,source);
|
|
|
|
|
}
|
|
|
|
|
else{
|
2016-06-11 02:51:33 +00:00
|
|
|
|
var triggerevent=_status.event.getTrigger();
|
|
|
|
|
if(triggerevent&&triggerevent.parent&&
|
|
|
|
|
triggerevent.parent.postAi&&
|
|
|
|
|
triggerevent.player.isUnknown(_status.event.player)){
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
2016-04-02 08:05:24 +00:00
|
|
|
|
var info=get.info(card);
|
|
|
|
|
if(info.ai&&info.ai.wuxie){
|
|
|
|
|
var aiii=info.ai.wuxie(target,card,source,_status.event.player,state);
|
|
|
|
|
if(typeof aiii=='number') return aiii;
|
|
|
|
|
}
|
|
|
|
|
if(info.multitarget&&targets){
|
|
|
|
|
var eff=0;
|
|
|
|
|
for(var i=0;i<targets.length;i++){
|
|
|
|
|
eff+=ai.get.effect(targets[i],card,source,_status.event.player)
|
|
|
|
|
}
|
|
|
|
|
return -eff*state;
|
|
|
|
|
}
|
|
|
|
|
if(Math.abs(ai.get.attitude(_status.event.player,target))<3) return 0;
|
|
|
|
|
return -ai.get.effect(target,card,source,_status.event.player)*state;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
source:target,
|
|
|
|
|
source2:targets,
|
|
|
|
|
id:id
|
|
|
|
|
});
|
|
|
|
|
if(game.online){
|
|
|
|
|
_status.event._resultid=id;
|
|
|
|
|
game.resume();
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
next.nouse=true;
|
|
|
|
|
}
|
|
|
|
|
};
|
2016-04-04 12:52:33 +00:00
|
|
|
|
'step 1'
|
|
|
|
|
var list=[];
|
|
|
|
|
event.list=list;
|
|
|
|
|
event.id=get.id();
|
|
|
|
|
for(var i=0;i<game.players.length;i++){
|
|
|
|
|
if(game.players[i].hasWuxie()){
|
|
|
|
|
list.push(game.players[i]);
|
2016-04-02 08:05:24 +00:00
|
|
|
|
}
|
2016-04-04 12:52:33 +00:00
|
|
|
|
}
|
|
|
|
|
list.sort(function(a,b){
|
|
|
|
|
return get.distance(event.source,a,'absolute')-get.distance(event.source,b,'absolute');
|
|
|
|
|
});
|
|
|
|
|
'step 2'
|
|
|
|
|
if(event.list.length==0){
|
|
|
|
|
event.finish();
|
|
|
|
|
if(!event.state){
|
|
|
|
|
trigger.untrigger();
|
|
|
|
|
if(event.triggername=='phaseJudge'){
|
|
|
|
|
trigger.cancelled=true;
|
2016-04-02 14:51:26 +00:00
|
|
|
|
}
|
2016-04-04 12:52:33 +00:00
|
|
|
|
else{
|
|
|
|
|
trigger.finish();
|
2016-04-02 08:05:24 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2016-04-04 12:52:33 +00:00
|
|
|
|
}
|
|
|
|
|
else if(_status.connectMode&&(event.list[0].isOnline()||event.list[0]==game.me)){
|
|
|
|
|
event.goto(4);
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.current=event.list.shift();
|
2016-04-09 07:58:45 +00:00
|
|
|
|
event.send(event.current,event.state,event.triggername=='phaseJudge',
|
|
|
|
|
event.card,event.source,event.target,event.targets,event.id,trigger.parent.id,event.tempnowuxie);
|
2016-04-04 12:52:33 +00:00
|
|
|
|
}
|
|
|
|
|
'step 3'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
event.wuxieresult=event.current;
|
|
|
|
|
event.wuxieresult2=result;
|
|
|
|
|
event.goto(8);
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.goto(2);
|
|
|
|
|
}
|
|
|
|
|
'step 4'
|
|
|
|
|
var id=event.id;
|
2016-04-02 08:05:24 +00:00
|
|
|
|
var sendback=function(result,player){
|
|
|
|
|
if(result&&result.id==id&&!event.wuxieresult&&result.bool){
|
|
|
|
|
event.wuxieresult=player;
|
|
|
|
|
event.wuxieresult2=result;
|
|
|
|
|
game.broadcast('cancel',id);
|
|
|
|
|
if(_status.event.id==id&&_status.event.name=='chooseToUse'&&_status.paused){
|
|
|
|
|
return (function(){
|
|
|
|
|
event.resultOL=_status.event.resultOL;
|
|
|
|
|
ui.click.cancel();
|
|
|
|
|
if(ui.confirm) ui.confirm.close();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
if(_status.event.id==id&&_status.event.name=='chooseToUse'&&_status.paused){
|
|
|
|
|
return (function(){
|
|
|
|
|
event.resultOL=_status.event.resultOL;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
var withme=false;
|
|
|
|
|
var withol=false;
|
2016-04-04 12:52:33 +00:00
|
|
|
|
var list=event.list;
|
2016-04-02 08:05:24 +00:00
|
|
|
|
for(var i=0;i<list.length;i++){
|
|
|
|
|
if(list[i].isOnline()){
|
|
|
|
|
withol=true;
|
|
|
|
|
list[i].wait(sendback);
|
2016-04-06 03:07:53 +00:00
|
|
|
|
list[i].send(event.send,list[i],event.state,event.triggername=='phaseJudge',
|
2016-04-13 04:17:17 +00:00
|
|
|
|
event.card,event.source,event.target,event.targets,event.id,trigger.parent.id,event.tempnowuxie,get.skillState(list[i]));
|
2016-04-04 12:52:33 +00:00
|
|
|
|
list.splice(i--,1);
|
2016-04-02 08:05:24 +00:00
|
|
|
|
}
|
|
|
|
|
else if(list[i]==game.me){
|
|
|
|
|
withme=true;
|
2016-04-06 03:07:53 +00:00
|
|
|
|
event.send(list[i],event.state,event.triggername=='phaseJudge',
|
2016-04-09 07:58:45 +00:00
|
|
|
|
event.card,event.source,event.target,event.targets,event.id,trigger.parent.id,event.tempnowuxie);
|
2016-04-04 12:52:33 +00:00
|
|
|
|
list.splice(i--,1);
|
2016-04-02 08:05:24 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(!withme){
|
2016-04-04 12:52:33 +00:00
|
|
|
|
event.goto(6);
|
2016-04-02 08:05:24 +00:00
|
|
|
|
}
|
2016-04-04 11:20:05 +00:00
|
|
|
|
if(_status.connectMode){
|
|
|
|
|
if(withme||withol){
|
|
|
|
|
for(var i=0;i<game.players.length;i++){
|
|
|
|
|
game.players[i].showTimer();
|
|
|
|
|
}
|
2016-04-03 09:56:33 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2016-04-02 08:05:24 +00:00
|
|
|
|
event.withol=withol;
|
2016-04-04 12:52:33 +00:00
|
|
|
|
'step 5'
|
2016-04-02 08:05:24 +00:00
|
|
|
|
if(result&&result.bool&&!event.wuxieresult){
|
|
|
|
|
game.broadcast('cancel',event.id);
|
|
|
|
|
event.wuxieresult=game.me;
|
|
|
|
|
event.wuxieresult2=result;
|
|
|
|
|
}
|
2016-04-04 12:52:33 +00:00
|
|
|
|
'step 6'
|
2016-04-02 08:05:24 +00:00
|
|
|
|
if(event.withol&&!event.resultOL){
|
|
|
|
|
game.pause();
|
|
|
|
|
}
|
2016-04-04 12:52:33 +00:00
|
|
|
|
'step 7'
|
2016-04-03 09:56:33 +00:00
|
|
|
|
for(var i=0;i<game.players.length;i++){
|
|
|
|
|
game.players[i].hideTimer();
|
|
|
|
|
}
|
2016-04-04 12:52:33 +00:00
|
|
|
|
'step 8'
|
|
|
|
|
if(event.wuxieresult){
|
2016-04-02 08:05:24 +00:00
|
|
|
|
event.wuxieresult.useResult(event.wuxieresult2);
|
|
|
|
|
}
|
2016-04-04 12:52:33 +00:00
|
|
|
|
'step 9'
|
2016-04-02 08:05:24 +00:00
|
|
|
|
if(event.wuxieresult){
|
|
|
|
|
if(result=='wuxied'){
|
|
|
|
|
event.state=!event.state;
|
|
|
|
|
}
|
|
|
|
|
event.goto(1);
|
|
|
|
|
}
|
2016-04-04 12:52:33 +00:00
|
|
|
|
else if(event.list.length){
|
|
|
|
|
event.goto(2);
|
|
|
|
|
}
|
2016-04-02 08:05:24 +00:00
|
|
|
|
else{
|
|
|
|
|
if(!event.state){
|
|
|
|
|
trigger.untrigger();
|
|
|
|
|
if(event.triggername=='phaseJudge'){
|
|
|
|
|
trigger.cancelled=true;
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
trigger.finish();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
delete event.resultOL;
|
|
|
|
|
delete event.wuxieresult;
|
|
|
|
|
delete event.wuxieresult2;
|
|
|
|
|
}
|
|
|
|
|
},
|
2015-04-29 03:25:17 +00:00
|
|
|
|
},
|
|
|
|
|
translate:{
|
|
|
|
|
sha:'杀',
|
2016-02-06 01:58:11 +00:00
|
|
|
|
huosha:'火杀',
|
|
|
|
|
leisha:'雷杀',
|
2015-04-29 03:25:17 +00:00
|
|
|
|
shan:'闪',
|
|
|
|
|
tao:'桃',
|
|
|
|
|
bagua:'八卦阵',
|
|
|
|
|
bagua_bg:'卦',
|
|
|
|
|
bagua_skill:'八卦阵',
|
|
|
|
|
jueying:'绝影',
|
|
|
|
|
dilu:'的卢',
|
|
|
|
|
zhuahuang:'爪黄飞电',
|
|
|
|
|
jueying_bg:'+马',
|
|
|
|
|
dilu_bg:'+马',
|
|
|
|
|
zhuahuang_bg:'+马',
|
|
|
|
|
chitu:'赤兔',
|
|
|
|
|
chitu_bg:'-马',
|
|
|
|
|
dawan:'大宛',
|
|
|
|
|
dawan_bg:'-马',
|
|
|
|
|
zixin:'紫骍',
|
|
|
|
|
zixin_bg:'-马',
|
|
|
|
|
zhuge:'诸葛连弩',
|
|
|
|
|
cixiong:'雌雄双股剑',
|
|
|
|
|
zhuge_bg:'弩',
|
|
|
|
|
cixiong_bg:'双',
|
|
|
|
|
qinggang:'青釭剑',
|
|
|
|
|
qinglong:'青龙偃月刀',
|
|
|
|
|
zhangba:'丈八蛇矛',
|
|
|
|
|
qinglong_bg:'偃',
|
|
|
|
|
zhangba_bg:'蛇',
|
|
|
|
|
guanshi:'贯石斧',
|
|
|
|
|
fangtian:'方天画戟',
|
|
|
|
|
qilin:'麒麟弓',
|
|
|
|
|
qilin_bg:'弓',
|
|
|
|
|
zhuge_skill:'诸葛连弩',
|
|
|
|
|
cixiong_skill:'雌雄双股剑',
|
|
|
|
|
qinggang_skill:'青釭剑',
|
|
|
|
|
qinglong_skill:'青龙偃月刀',
|
|
|
|
|
zhangba_skill:'丈八蛇矛',
|
|
|
|
|
guanshi_skill:'贯石斧',
|
|
|
|
|
fangtian_skill:'方天画戟',
|
|
|
|
|
qilin_skill:'麒麟弓',
|
|
|
|
|
wugu:'五谷丰登',
|
|
|
|
|
taoyuan:'桃园结义',
|
|
|
|
|
nanman:'南蛮入侵',
|
|
|
|
|
wanjian:'万箭齐发',
|
|
|
|
|
wuzhong:'无中生有',
|
|
|
|
|
juedou:'决斗',
|
|
|
|
|
wugu_bg:'谷',
|
|
|
|
|
taoyuan_bg:'园',
|
|
|
|
|
nanman_bg:'蛮',
|
|
|
|
|
wanjian_bg:'箭',
|
|
|
|
|
wuzhong_bg:'生',
|
|
|
|
|
juedou_bg:'斗',
|
|
|
|
|
shunshou:'顺手牵羊',
|
|
|
|
|
guohe:'过河拆桥',
|
|
|
|
|
guohe_bg:'拆',
|
|
|
|
|
jiedao:'借刀杀人',
|
|
|
|
|
wuxie:'无懈可击',
|
|
|
|
|
wuxie_bg:'懈',
|
|
|
|
|
lebu:'乐不思蜀',
|
|
|
|
|
shandian:'闪电',
|
|
|
|
|
shandian_bg:'电',
|
2016-07-05 14:11:33 +00:00
|
|
|
|
hanbing:'寒冰剑',
|
|
|
|
|
renwang:'仁王盾',
|
|
|
|
|
hanbing_bg:'冰',
|
|
|
|
|
renwang_bg:'盾',
|
|
|
|
|
hanbing_skill:'寒冰剑',
|
|
|
|
|
renwang_skill:'仁王盾',
|
|
|
|
|
hanbing_info:'每当你使用杀命中目标后,你可以防止伤害,改为弃置目标两张牌',
|
|
|
|
|
hanbing_skill_info:'每当你使用杀命中目标后,你可以防止伤害,改为弃置目标两张牌',
|
|
|
|
|
renwang_info:'黑色的杀对你无效',
|
|
|
|
|
renwang_skill_info:'黑色的杀对你无效',
|
2015-04-29 03:25:17 +00:00
|
|
|
|
sha_info:'出牌阶段,对攻击范围内的一名角色使用,令其打出一张【闪】或受到一点伤害。',
|
2015-09-16 07:31:41 +00:00
|
|
|
|
shan_info:'闪避一张杀',
|
2015-04-29 03:25:17 +00:00
|
|
|
|
tao_info:'出牌阶段,对自己使用,回复一点体力。',
|
|
|
|
|
bagua_info:'每当你需要使用或打出一张【闪】时,你可以进行一次判定,若判定结果为红色,视为你使用或打出了一张【闪】。',
|
|
|
|
|
bagua_skill_info:'每当你需要使用或打出一张【闪】时,你可以进行一次判定,若判定结果为红色,视为你使用或打出了一张【闪】。',
|
2015-11-30 13:08:29 +00:00
|
|
|
|
jueying_info:'其他角色与你的距离+1',
|
|
|
|
|
dilu_info:'其他角色与你的距离+1',
|
|
|
|
|
zhuahuang_info:'其他角色与你的距离+1',
|
|
|
|
|
chitu_info:'你与其他角色的距离-1',
|
|
|
|
|
dawan_info:'你与其他角色的距离-1',
|
|
|
|
|
zixin_info:'你与其他角色的距离-1',
|
2015-04-29 03:25:17 +00:00
|
|
|
|
zhuge_skill_info:'你于出牌阶段内使用【杀】无次数限制。',
|
|
|
|
|
zhuge_info:'你于出牌阶段内使用【杀】无次数限制。',
|
|
|
|
|
cixiong_skill_info:'每当你使用【杀】指定一名异性的目标角色后,你可以令其选择一项:1.弃置一张手牌;2.令你摸一张牌。',
|
|
|
|
|
cixiong_info:'每当你使用【杀】指定一名异性的目标角色后,你可以令其选择一项:1.弃置一张手牌;2.令你摸一张牌。',
|
|
|
|
|
qinggang_skill_info:'每当你使用【杀】指定一名目标角色后,你无视其防具。',
|
|
|
|
|
qinggang_info:'每当你使用【杀】指定一名目标角色后,你无视其防具。',
|
|
|
|
|
qinglong_skill_info:'每当你使用的【杀】被目标角色使用的【闪】抵消时,你可以对其使用一张【杀】(无距离限制)。',
|
|
|
|
|
qinglong_info:'每当你使用的【杀】被目标角色使用的【闪】抵消时,你可以对其使用一张【杀】(无距离限制)。',
|
|
|
|
|
zhangba_skill_info:'你可以将两张手牌当【杀】使用或打出。',
|
|
|
|
|
zhangba_info:'你可以将两张手牌当【杀】使用或打出。',
|
|
|
|
|
guanshi_skill_info:'每当你使用的【杀】被目标角色使用的【闪】抵消时,你可以弃置两张牌,令此【杀】依然对其造成伤害。',
|
|
|
|
|
guanshi_info:'每当你使用的【杀】被目标角色使用的【闪】抵消时,你可以弃置两张牌,令此【杀】依然对其造成伤害。',
|
|
|
|
|
fangtian_skill_info:'你使用的【杀】若是你最后的手牌,你可以额外选择至多两个目标。',
|
|
|
|
|
fangtian_info:'你使用的【杀】若是你最后的手牌,你可以额外选择至多两个目标。',
|
|
|
|
|
qilin_skill_info:'每当你使用【杀】对目标角色造成伤害时,你可以弃置其装备区里的一张坐骑牌。',
|
|
|
|
|
qilin_info:'每当你使用【杀】对目标角色造成伤害时,你可以弃置其装备区里的一张坐骑牌。',
|
|
|
|
|
wugu_info:'出牌阶段,对所有角色使用。(选择目标后)你从牌堆顶亮出等同于角色数量的牌,每名目标角色获得这些牌中(剩余的)的任意一张。',
|
|
|
|
|
taoyuan_info:'出牌阶段,对所有角色使用。每名目标角色回复1点体力。',
|
|
|
|
|
nanman_info:'出牌阶段,对所有其他角色使用。每名目标角色需打出一张【杀】,否则受到1点伤害。',
|
|
|
|
|
wanjian_info:'出牌阶段,对所有其他角色使用。每名目标角色需打出一张【闪】,否则受到1点伤害。',
|
|
|
|
|
wuzhong_info:'出牌阶段,对你使用。你摸两张牌。',
|
|
|
|
|
juedou_info:'出牌阶段,对一名其他角色使用。由其开始,其与你轮流打出一张【杀】,直到其中一方未打出【杀】为止。未打出【杀】的一方受到另一方对其造成的1点伤害。',
|
|
|
|
|
shunshou_info:'出牌阶段,对距离为1且区域里有牌的一名其他角色使用。你获得其区域里的一张牌。',
|
|
|
|
|
guohe_info:'出牌阶段,对区域里有牌的一名其他角色使用。你弃置其区域里的一张牌。',
|
|
|
|
|
jiedao_info:'出牌阶段,对装备区里有武器牌且有使用【杀】的目标的一名其他角色使用。令其对你指定的一名角色使用一张【杀】,否则将其装备区里的武器牌交给你。',
|
|
|
|
|
wuxie_info:'一张锦囊牌生效前,对此牌使用。抵消此牌对一名角色产生的效果,或抵消另一张【无懈可击】产生的效果。',
|
|
|
|
|
lebu_info:'出牌阶段,对一名其他角色使用。若判定结果不为红桃,跳过其出牌阶段。',
|
|
|
|
|
shandian_info:'出牌阶段,对自己使用。若判定结果为黑桃2~9,则目标角色受到3点雷电伤害。若判定不为黑桃2~9,将之移动到下家的判定区里。',
|
|
|
|
|
},
|
|
|
|
|
list:[
|
|
|
|
|
["spade",7,"sha"],
|
|
|
|
|
["spade",8,"sha"],
|
|
|
|
|
["spade",8,"sha"],
|
|
|
|
|
["spade",9,"sha"],
|
|
|
|
|
["spade",9,"sha"],
|
|
|
|
|
["spade",10,"sha"],
|
|
|
|
|
["spade",10,"sha"],
|
|
|
|
|
["club",2,"sha"],
|
|
|
|
|
["club",3,"sha"],
|
|
|
|
|
["club",4,"sha"],
|
|
|
|
|
["club",5,"sha"],
|
|
|
|
|
["club",6,"sha"],
|
|
|
|
|
["club",7,"sha"],
|
|
|
|
|
["club",8,"sha"],
|
|
|
|
|
["club",8,"sha"],
|
|
|
|
|
["club",9,"sha"],
|
|
|
|
|
["club",9,"sha"],
|
|
|
|
|
["club",10,"sha"],
|
|
|
|
|
["club",10,"sha"],
|
|
|
|
|
["club",11,"sha"],
|
|
|
|
|
["club",11,"sha"],
|
|
|
|
|
["heart",10,"sha"],
|
|
|
|
|
["heart",10,"sha"],
|
|
|
|
|
["heart",11,"sha"],
|
|
|
|
|
["diamond",6,"sha"],
|
|
|
|
|
["diamond",7,"sha"],
|
|
|
|
|
["diamond",8,"sha"],
|
|
|
|
|
["diamond",9,"sha"],
|
|
|
|
|
["diamond",10,"sha"],
|
|
|
|
|
["diamond",13,"sha"],
|
|
|
|
|
["heart",2,"shan"],
|
|
|
|
|
["heart",2,"shan"],
|
|
|
|
|
["heart",13,"shan"],
|
|
|
|
|
["diamond",2,"shan"],
|
|
|
|
|
["diamond",2,"shan"],
|
|
|
|
|
["diamond",3,"shan"],
|
|
|
|
|
["diamond",4,"shan"],
|
|
|
|
|
["diamond",5,"shan"],
|
|
|
|
|
["diamond",6,"shan"],
|
|
|
|
|
["diamond",7,"shan"],
|
|
|
|
|
["diamond",8,"shan"],
|
|
|
|
|
["diamond",9,"shan"],
|
|
|
|
|
["diamond",10,"shan"],
|
|
|
|
|
["diamond",11,"shan"],
|
|
|
|
|
["diamond",11,"shan"],
|
|
|
|
|
["heart",3,"tao"],
|
|
|
|
|
["heart",4,"tao"],
|
|
|
|
|
["heart",6,"tao"],
|
|
|
|
|
["heart",7,"tao"],
|
|
|
|
|
["heart",8,"tao"],
|
|
|
|
|
["heart",9,"tao"],
|
|
|
|
|
["heart",12,"tao"],
|
|
|
|
|
["diamond",12,"tao"],
|
|
|
|
|
|
|
|
|
|
["spade",2,"bagua"],
|
|
|
|
|
["club",2,"bagua"],
|
|
|
|
|
["spade",5,"jueying"],
|
|
|
|
|
["club",5,"dilu"],
|
|
|
|
|
["heart",13,"zhuahuang"],
|
|
|
|
|
["heart",5,"chitu"],
|
|
|
|
|
["spade",13,"dawan"],
|
|
|
|
|
["diamond",13,"zixin"],
|
|
|
|
|
["club",1,"zhuge"],
|
|
|
|
|
["diamond",1,"zhuge"],
|
|
|
|
|
["spade",2,"cixiong"],
|
|
|
|
|
["spade",6,"qinggang"],
|
|
|
|
|
["spade",5,"qinglong"],
|
|
|
|
|
["spade",12,"zhangba"],
|
2015-06-27 16:21:25 +00:00
|
|
|
|
["diamond",5,"guanshi"],
|
2015-04-29 03:25:17 +00:00
|
|
|
|
["diamond",12,"fangtian"],
|
|
|
|
|
["heart",5,"qilin"],
|
|
|
|
|
|
|
|
|
|
["heart",3,"wugu"],
|
|
|
|
|
["heart",4,"wugu"],
|
|
|
|
|
["heart",1,"taoyuan"],
|
|
|
|
|
["spade",7,"nanman"],
|
|
|
|
|
["spade",13,"nanman"],
|
|
|
|
|
["club",7,"nanman"],
|
|
|
|
|
["heart",1,"wanjian"],
|
|
|
|
|
["spade",1,"juedou"],
|
|
|
|
|
["club",1,"juedou"],
|
|
|
|
|
["diamond",1,"juedou"],
|
|
|
|
|
["heart",7,"wuzhong"],
|
|
|
|
|
["heart",8,"wuzhong"],
|
|
|
|
|
["heart",9,"wuzhong"],
|
|
|
|
|
["heart",11,"wuzhong"],
|
|
|
|
|
["spade",3,'shunshou'],
|
|
|
|
|
["spade",4,'shunshou'],
|
|
|
|
|
["spade",11,'shunshou'],
|
|
|
|
|
["diamond",3,'shunshou'],
|
|
|
|
|
["diamond",4,'shunshou'],
|
|
|
|
|
["spade",3,'guohe'],
|
|
|
|
|
["spade",4,'guohe'],
|
|
|
|
|
["spade",12,'guohe'],
|
2015-09-16 07:31:41 +00:00
|
|
|
|
["club",3,'guohe'],
|
|
|
|
|
["club",4,'guohe'],
|
2015-04-29 03:25:17 +00:00
|
|
|
|
["heart",12,'guohe'],
|
|
|
|
|
["club",12,'jiedao'],
|
|
|
|
|
["club",13,'jiedao'],
|
|
|
|
|
["spade",11,'wuxie'],
|
|
|
|
|
["club",12,'wuxie'],
|
|
|
|
|
["club",13,'wuxie'],
|
|
|
|
|
["spade",6,'lebu'],
|
|
|
|
|
["club",6,'lebu'],
|
|
|
|
|
["heart",6,'lebu'],
|
|
|
|
|
["spade",1,'shandian','thunder'],
|
2016-07-05 14:11:33 +00:00
|
|
|
|
["spade",2,'hanbing'],
|
|
|
|
|
["club",2,'renwang'],
|
|
|
|
|
["heart",12,'shandian','thunder'],
|
|
|
|
|
["diamond",12,'wuxie'],
|
2015-04-29 03:25:17 +00:00
|
|
|
|
],
|
|
|
|
|
}
|