濒死求桃Bug

This commit is contained in:
libccy 2015-06-19 23:31:36 +08:00
parent f88f7ca1ac
commit 59209fcfad
11 changed files with 145 additions and 3 deletions

View File

@ -203,6 +203,7 @@ card.standard={
var tri=_status.event.parent._trigger; var tri=_status.event.parent._trigger;
if(lib.config.mode=='identity'&&player.identity=='fan'&&target.identity=='fan'){ if(lib.config.mode=='identity'&&player.identity=='fan'&&target.identity=='fan'){
if(tri&&tri.name=='dying'&&tri.source&&tri.source.identity=='fan'&&tri.source!=target){ if(tri&&tri.name=='dying'&&tri.source&&tri.source.identity=='fan'&&tri.source!=target){
var num=0;
for(var i=0;i<game.players.length;i++){ for(var i=0;i<game.players.length;i++){
if(game.players[i].identity=='fan'){ if(game.players[i].identity=='fan'){
num+=game.players[i].num('h','tao'); num+=game.players[i].num('h','tao');

View File

@ -10,8 +10,133 @@ character.hearth={
// hs_anduin:['male','qun',4,[],['fullskin']], // hs_anduin:['male','qun',4,[],['fullskin']],
hs_thrall:['male','qun',4,['tuteng','tzhenji'],['fullskin']], hs_thrall:['male','qun',4,['tuteng','tzhenji'],['fullskin']],
hs_waleera:['female','qun',3,['jianren','mengun','wlianji'],['fullskin']], hs_waleera:['female','qun',3,['jianren','mengun','wlianji'],['fullskin']],
hs_medivh:['male','wei',3,['jingxiang','moying','xianzhi'],['fullskin']],
// hs_alleria:['male','qun',3,[],['fullskin']],
// hs_magni:['male','qun',3,['jingxiang'],['fullskin']],
}, },
skill:{ skill:{
moying:{
trigger:{player:'phaseEnd'},
filter:function(event,player){
return !player.getStat('damage');
},
direct:true,
content:function(){
"step 0"
player.chooseTarget('是否发动【魔影】?').ai=function(target){
if(player.skills.contains('xianzhi')){
return -ai.get.attitude(player,target);
}
return 0;
};
"step 1"
if(result.bool){
event.target=result.targets[0];
event.target.judge(function(card){
return get.color(card)=='red'?1:-1;
});
player.logSkill('moying',event.target);
}
else{
event.finish();
}
"step 2"
if(result.bool){
event.target.draw();
}
else{
event.target.loseHp();
}
},
ai:{
expose:0.1,
threaten:1.3
}
},
xianzhi:{
trigger:{global:'judgeBegin'},
frequent:true,
filter:function(){
return ui.cardPile.childNodes.length>1;
},
content:function(){
'step 0'
var str='';
if(trigger.card) str=get.translation(trigger.card.viewAs||trigger.card.name);
else if(trigger.skill) str=get.translation(trigger.skill);
else str=get.translation(trigger.parent.name);
var cards=[ui.cardPile.childNodes[0],ui.cardPile.childNodes[1]];
var att=ai.get.attitude(player,trigger.player);
var delta=trigger.judge(ui.cardPile.childNodes[1])-trigger.judge(ui.cardPile.childNodes[0]);
player.chooseControl('调换顺序','cancel',
ui.create.dialog('先知:'+get.translation(trigger.player)+'的'+str+'判定',cards,'hidden')).ai=function(){
if(att*delta>0) return '调换顺序';
else return 'cancel';
};
'step 1'
if(result.control=='调换顺序'){
var card=ui.cardPile.firstChild;
ui.cardPile.removeChild(card);
ui.cardPile.insertBefore(card,ui.cardPile.firstChild.nextSibling);
game.log(get.translation(player)+'调换了牌堆顶两张牌的顺序');
}
},
ai:{
expose:0.1,
rejudge:0.5
}
},
jingxiang:{
trigger:{player:'chooseToRespondBegin'},
direct:true,
filter:function(event,player){
if(event.responded) return false;
for(var i=0;i<game.players.length;i++){
if(game.players[i]!=player&&game.players[i].num('h')){
return true;
}
}
return false;
},
content:function(){
"step 0"
var players=[];
for(var i=0;i<game.players.length;i++){
if(game.players[i]!=player&&game.players[i].num('h')){
players.push(game.players[i]);
}
}
if(!players.length){
event.finish();
return;
}
var target=players.randomGet();
event.target=target;
var cards=target.get('h');
player.chooseCardButton('镜像:选择'+get.translation(target)+'的一张卡手牌打出',cards).filterButton=function(button){
return trigger.filterCard(button.link);
}
"step 1"
if(result.bool){
player.logSkill('jingxiang',event.target);
event.target.lose(result.links);
trigger.untrigger();
trigger.responded=true;
result.buttons[0].link.remove();
trigger.result={bool:true,card:result.buttons[0].link}
}
},
ai:{
effect:{
target:function(card,player,target,effect){
if(get.tag(card,'respondShan')) return 0.7;
if(get.tag(card,'respondSha')) return 0.7;
}
}
},
},
wlianji:{ wlianji:{
trigger:{player:'phaseEnd'}, trigger:{player:'phaseEnd'},
frequent:true, frequent:true,
@ -454,6 +579,7 @@ character.hearth={
} }
}, },
translate:{ translate:{
hs_medivh:'麦迪文',
hs_jaina:'吉安娜', hs_jaina:'吉安娜',
hs_rexxar:'雷克萨', hs_rexxar:'雷克萨',
hs_uther:'乌瑟尔', hs_uther:'乌瑟尔',
@ -464,6 +590,13 @@ character.hearth={
hs_thrall:'萨尔', hs_thrall:'萨尔',
hs_waleera:'瓦莉拉', hs_waleera:'瓦莉拉',
xianzhi:'先知',
xianzhi_info:'任意一名角色进行判定前,你可以观看牌堆顶的两张牌,并可以将其调换顺序',
moying:'魔影',
moying_info:'回合结束阶段,若你本回合内没有造成伤害,可以指定一名角色进行判定,若为黑色,其流失一点体力,若为红色,其摸一张牌',
jingxiang:'镜像',
jingxiang_info:'每当你需要打出卡牌时,你可以观看一名随机角色的手牌并将其视为你的手牌打出',
tuteng:'图腾', tuteng:'图腾',
tuteng_info:'出牌阶段限一次,你可以弃置一张牌并随机获得一个图腾;每当你受到一次伤害,你随机失去一个图腾', tuteng_info:'出牌阶段限一次,你可以弃置一张牌并随机获得一个图腾;每当你受到一次伤害,你随机失去一个图腾',
tuteng1:'治疗图腾', tuteng1:'治疗图腾',

View File

@ -1,3 +1,4 @@
'use strict';
character.jiange={ character.jiange={
character:{ character:{
jg_pangtong:['male','shu',3,['qiwu','tianyu'],['fullskin']], jg_pangtong:['male','shu',3,['qiwu','tianyu'],['fullskin']],

View File

@ -1218,6 +1218,7 @@ character.sp={
}) })
"step 1" "step 1"
player.turnOver(); player.turnOver();
player.removeSkill('guixiu');
}, },
intro:{ intro:{
content:'limited' content:'limited'
@ -1742,7 +1743,7 @@ character.sp={
} }
"step 1" "step 1"
if(result.bool){ if(result.bool){
player.logSkill('aocai'); game.log(get.translation(player)+'傲才发动成功');
trigger.untrigger(); trigger.untrigger();
trigger.responded=true; trigger.responded=true;
result.buttons[0].link.remove(); result.buttons[0].link.remove();
@ -2799,7 +2800,7 @@ character.sp={
shoucheng_info:'每当一名其他角色在其回合外失去最后的手牌时,你可令该角色摸一张牌。', shoucheng_info:'每当一名其他角色在其回合外失去最后的手牌时,你可令该角色摸一张牌。',
shengxi_info:'若你于出牌阶段未造成伤害,你可在弃牌阶段开始时摸两张牌。', shengxi_info:'若你于出牌阶段未造成伤害,你可在弃牌阶段开始时摸两张牌。',
hengzheng_info:'摸牌阶段开始时若你的体力值为1或你没有手牌你可以放弃摸牌获得每名其他角色区域里的一张牌。', hengzheng_info:'摸牌阶段开始时若你的体力值为1或你没有手牌你可以放弃摸牌获得每名其他角色区域里的一张牌。',
cunsi_info:'限定技,出牌阶段,你可以将所有手牌交给一名男性角色,令该角色获得技能【勇决】,然后翻面', cunsi_info:'限定技,出牌阶段,你可以将所有手牌交给一名男性角色,令该角色获得技能【勇决】,然后翻面并失去技能【闺秀】',
guixiu_info:'每当你成为杀的目标,若你的手牌数小于体力值,可以摸一张牌', guixiu_info:'每当你成为杀的目标,若你的手牌数小于体力值,可以摸一张牌',
fenming_info:'结束阶段开始时,若你处于连环状态,你可以弃置处于连环状态的每名角色的一张牌。', fenming_info:'结束阶段开始时,若你处于连环状态,你可以弃置处于连环状态的每名角色的一张牌。',
duanxie_info:'出牌阶段限一次,你可以令一名其他角色横置武将牌,若如此做,你横置武将牌。', duanxie_info:'出牌阶段限一次,你可以令一名其他角色横置武将牌,若如此做,你横置武将牌。',

View File

@ -860,7 +860,10 @@
"step 0" "step 0"
if(event.isMine()){ if(event.isMine()){
ui.create.confirm('oc'); ui.create.confirm('oc');
if(event.prompt){ if(event.dialog){
event.dialog.open();
}
else if(event.prompt){
event.dialog=ui.create.dialog(event.prompt); event.dialog=ui.create.dialog(event.prompt);
} }
_status.imchoosing=true; _status.imchoosing=true;
@ -2836,6 +2839,9 @@
else if(typeof arguments[i]=='string'){ else if(typeof arguments[i]=='string'){
next.prompt=arguments[i]; next.prompt=arguments[i];
} }
else if(get.itemtype(arguments[i])=='dialog'){
next.dialog=arguments[i];
}
if(next.choice==undefined) next.choice=true; if(next.choice==undefined) next.choice=true;
} }
next.player=this; next.player=this;

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB