部分时机更改
This commit is contained in:
parent
92ba825c20
commit
e6fa9b0b61
|
@ -2601,7 +2601,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
}
|
}
|
||||||
else game.delayx();
|
else game.delayx();
|
||||||
'step 3'
|
'step 3'
|
||||||
player.addTempSkill('nstuilun_effect',{player:'phaseBegin'});
|
player.addTempSkill('nstuilun_effect',{player:'phaseBeginStart'});
|
||||||
},
|
},
|
||||||
subSkill:{
|
subSkill:{
|
||||||
effect:{
|
effect:{
|
||||||
|
@ -3562,7 +3562,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
if(player.countCards('h')>0) player.chooseToDiscard('h',true,player.countCards('h'));
|
if(player.countCards('h')>0) player.chooseToDiscard('h',true,player.countCards('h'));
|
||||||
player.recover();
|
player.recover();
|
||||||
trigger.cancel();
|
trigger.cancel();
|
||||||
player.addTempSkill('kyou_duanfa_draw',{player:'phaseBegin'});
|
player.addTempSkill('kyou_duanfa_draw',{player:'phaseBeginStart'});
|
||||||
},
|
},
|
||||||
subSkill:{
|
subSkill:{
|
||||||
draw:{
|
draw:{
|
||||||
|
@ -6372,9 +6372,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
var num=game.roundNumber;
|
var num=game.roundNumber;
|
||||||
if(num&&typeof num=='number') player.draw(Math.min(3,num));
|
if(num&&typeof num=='number') player.draw(Math.min(3,num));
|
||||||
'step 1'
|
'step 1'
|
||||||
var next=player.phaseUse();
|
trigger.phaseList.splice(trigger.num,0,'phaseUse|godan_yuanyi');
|
||||||
event.next.remove(next);
|
|
||||||
trigger.next.push(next);
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
godan_feiqu:{
|
godan_feiqu:{
|
||||||
|
|
|
@ -3586,7 +3586,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
huoxin2:{
|
huoxin2:{
|
||||||
trigger:{
|
trigger:{
|
||||||
player:['phaseAfter','dieAfter'],
|
player:['phaseAfter','dieAfter'],
|
||||||
global:'phaseBefore',
|
global:'phaseBeforeStart',
|
||||||
},
|
},
|
||||||
lastDo:true,
|
lastDo:true,
|
||||||
charlotte:true,
|
charlotte:true,
|
||||||
|
@ -5412,7 +5412,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
player.chooseTarget(get.prompt('dawu'),'令至多'+get.cnNumber(num)+'名角色获得“大雾”标记',
|
player.chooseTarget(get.prompt('dawu'),'令至多'+get.cnNumber(num)+'名角色获得“大雾”标记',
|
||||||
[1,num]).set('ai',function(target){
|
[1,num]).set('ai',function(target){
|
||||||
if(target.isMin()) return 0;
|
if(target.isMin()) return 0;
|
||||||
if(target.hasSkill('biantian2')) return 0;
|
if(target.hasSkill('biantian2')||target.hasSkill('dawu2')) return 0;
|
||||||
var att=get.attitude(player,target);
|
var att=get.attitude(player,target);
|
||||||
if(att>=4){
|
if(att>=4){
|
||||||
if(_status.event.allUse) return att;
|
if(_status.event.allUse) return att;
|
||||||
|
@ -5426,13 +5426,15 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
})*2);
|
})*2);
|
||||||
"step 1"
|
"step 1"
|
||||||
if(result.bool){
|
if(result.bool){
|
||||||
player.logSkill('dawu',result.targets,'thunder');
|
var targets=result.targets.sortBySeat();
|
||||||
var length=result.targets.length;
|
player.logSkill('dawu',targets,'thunder');
|
||||||
for(var i=0;i<length;i++){
|
var length=targets.length;
|
||||||
result.targets[i].addSkill('dawu2');
|
targets.forEach(target=>{
|
||||||
}
|
target.addAdditionalSkill(`dawu_${player.playerid}`,'dawu2');
|
||||||
|
target.markAuto('dawu2',[player]);
|
||||||
|
});
|
||||||
|
player.addTempSkill('dawu3',{player:'phaseBeginStart'})
|
||||||
player.chooseCardButton('选择弃置'+get.cnNumber(length)+'张“星”',length,player.getExpansions('qixing'),true);
|
player.chooseCardButton('选择弃置'+get.cnNumber(length)+'张“星”',length,player.getExpansions('qixing'),true);
|
||||||
player.addSkill('dawu3');
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
event.finish();
|
event.finish();
|
||||||
|
@ -5443,46 +5445,41 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
ai:{combo:'qixing'},
|
ai:{combo:'qixing'},
|
||||||
},
|
},
|
||||||
dawu2:{
|
dawu2:{
|
||||||
trigger:{player:'damageBegin4'},
|
|
||||||
filter:function(event){
|
|
||||||
if(!event.hasNature('thunder')) return true;
|
|
||||||
return false;
|
|
||||||
},
|
|
||||||
mark:true,
|
|
||||||
forced:true,
|
|
||||||
charlotte:true,
|
charlotte:true,
|
||||||
content:function(){
|
|
||||||
trigger.cancel();
|
|
||||||
},
|
|
||||||
ai:{
|
ai:{
|
||||||
nofire:true,
|
nofire:true,
|
||||||
nodamage:true,
|
nodamage:true,
|
||||||
effect:{
|
effect:{
|
||||||
target:function(card,player,target,current){
|
target:function(card,player,target,current){
|
||||||
if(get.tag(card,'damage')&&!get.tag(card,'thunderDamage')) return [0,0];
|
if(get.tag(card,'damage')&&!get.tag(card,'thunderDamage')) return 'zeroplayertarget';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
intro:{
|
intro:{
|
||||||
markcount:()=>1,
|
content:function(storage){
|
||||||
content:'共有1个标记',
|
return `共有${storage.length}枚标记`;
|
||||||
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
dawu3:{
|
dawu3:{
|
||||||
trigger:{player:['phaseBegin','dieBegin']},
|
trigger:{global:'damageBegin4'},
|
||||||
silent:true,
|
filter:function(event,player){
|
||||||
|
return !event.hasNature('thunder')&&event.player.getStorage('dawu2').includes(player);
|
||||||
|
},
|
||||||
|
forced:true,
|
||||||
charlotte:true,
|
charlotte:true,
|
||||||
|
logTarget:'player',
|
||||||
content:function(){
|
content:function(){
|
||||||
for(var i=0;i<game.players.length;i++){
|
trigger.cancel();
|
||||||
if(game.players[i].hasSkill('dawu2')){
|
},
|
||||||
game.players[i].removeSkill('dawu2');
|
onremove:function(player){
|
||||||
|
game.countPlayer2(current=>{
|
||||||
|
if(current.getStorage('dawu2').includes(player)){
|
||||||
|
current.unmarkAuto('dawu2',player);
|
||||||
|
current.removeAdditionalSkill(`dawu_${player.playerid}`);
|
||||||
}
|
}
|
||||||
if(game.players[i].hasSkill('kuangfeng2')){
|
},true);
|
||||||
game.players[i].removeSkill('kuangfeng2');
|
},
|
||||||
}
|
|
||||||
}
|
|
||||||
player.removeSkill('dawu3');
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
kuangfeng:{
|
kuangfeng:{
|
||||||
unique:true,
|
unique:true,
|
||||||
|
@ -5499,13 +5496,15 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
}
|
}
|
||||||
"step 1"
|
"step 1"
|
||||||
if(result.bool){
|
if(result.bool){
|
||||||
var length=result.targets.length;
|
var targets=result.targets.sortBySeat();
|
||||||
for(var i=0;i<length;i++){
|
player.logSkill('kuangfeng',targets,'fire');
|
||||||
result.targets[i].addSkill('kuangfeng2');
|
var length=targets.length;
|
||||||
}
|
targets.forEach(target=>{
|
||||||
player.logSkill('kuangfeng',result.targets,'fire');
|
target.addAdditionalSkill(`kuangfeng_${player.playerid}`,'kuangfeng2');
|
||||||
player.chooseCardButton('弃置'+get.cnNumber(length)+'枚星',length,player.getExpansions('qixing'),true);
|
target.markAuto('kuangfeng2',[player]);
|
||||||
player.addSkill('dawu3');
|
});
|
||||||
|
player.addTempSkill('kuangfeng3',{player:'phaseBeginStart'})
|
||||||
|
player.chooseCardButton('选择弃置'+get.cnNumber(length)+'张“星”',length,player.getExpansions('qixing'),true);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
event.finish();
|
event.finish();
|
||||||
|
@ -5516,28 +5515,40 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
ai:{combo:'qixing'},
|
ai:{combo:'qixing'},
|
||||||
},
|
},
|
||||||
kuangfeng2:{
|
kuangfeng2:{
|
||||||
trigger:{player:'damageBegin3'},
|
charlotte:true,
|
||||||
filter:function(event){
|
|
||||||
if(event.hasNature('fire')) return true;
|
|
||||||
return false;
|
|
||||||
},
|
|
||||||
mark:true,
|
|
||||||
intro:{
|
intro:{
|
||||||
markcount:()=>1,
|
content:function(storage){
|
||||||
content:'共有1个标记'
|
return `共有${storage.length}枚标记`;
|
||||||
},
|
},
|
||||||
forced:true,
|
|
||||||
content:function(){
|
|
||||||
trigger.num++;
|
|
||||||
},
|
},
|
||||||
ai:{
|
ai:{
|
||||||
effect:{
|
effect:{
|
||||||
target:function(card,player,target,current){
|
target:function(card,player,target,current){
|
||||||
if(get.tag(card,'fireDamage')) return 1.5;
|
if(get.tag(card,'fireDamage')&¤t<0) return 1.5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
kuangfeng3:{
|
||||||
|
trigger:{global:'damageBegin3'},
|
||||||
|
filter:function(event){
|
||||||
|
return event.hasNature('fire')&&event.player.getStorage('kuangfeng2').includes(player);
|
||||||
|
},
|
||||||
|
charlotte:true,
|
||||||
|
forced:true,
|
||||||
|
logTarget:'player',
|
||||||
|
content:function(){
|
||||||
|
trigger.num++;
|
||||||
|
},
|
||||||
|
onremove:function(player){
|
||||||
|
game.countPlayer2(current=>{
|
||||||
|
if(current.getStorage('kuangfeng2').includes(player)){
|
||||||
|
current.unmarkAuto('kuangfeng2',player);
|
||||||
|
current.removeAdditionalSkill(`kuangfeng_${player.playerid}`);
|
||||||
|
}
|
||||||
|
},true);
|
||||||
|
},
|
||||||
|
},
|
||||||
yeyan:{
|
yeyan:{
|
||||||
unique:true,
|
unique:true,
|
||||||
forceDie:true,
|
forceDie:true,
|
||||||
|
|
|
@ -25229,7 +25229,7 @@
|
||||||
this.removeSkill('mad');
|
this.removeSkill('mad');
|
||||||
},
|
},
|
||||||
tempHide:function(){
|
tempHide:function(){
|
||||||
this.addTempSkill('qianxing',{player:'phaseBegin'});
|
this.addTempSkill('qianxing',{player:'phaseBeginStart'});
|
||||||
},
|
},
|
||||||
addExpose:function(num){
|
addExpose:function(num){
|
||||||
if(typeof this.ai.shown=='number'&&!this.identityShown&&this.ai.shown<1){
|
if(typeof this.ai.shown=='number'&&!this.identityShown&&this.ai.shown<1){
|
||||||
|
@ -26860,7 +26860,7 @@
|
||||||
this.addSkill(skill,checkConflict,true,true);
|
this.addSkill(skill,checkConflict,true,true);
|
||||||
|
|
||||||
if(!expire){
|
if(!expire){
|
||||||
expire=['phaseAfter','phaseBefore'];
|
expire=['phaseAfter','phaseBeforeStart'];
|
||||||
}
|
}
|
||||||
this.tempSkills[skill]=expire;
|
this.tempSkills[skill]=expire;
|
||||||
|
|
||||||
|
@ -32469,6 +32469,7 @@
|
||||||
silent:true,
|
silent:true,
|
||||||
charlotte:true,
|
charlotte:true,
|
||||||
priority:-100,
|
priority:-100,
|
||||||
|
lastDo:true,
|
||||||
content:function(){
|
content:function(){
|
||||||
player.removeSkill('counttrigger');
|
player.removeSkill('counttrigger');
|
||||||
delete player.storage.counttrigger;
|
delete player.storage.counttrigger;
|
||||||
|
@ -32476,9 +32477,10 @@
|
||||||
group:'counttrigger_2',
|
group:'counttrigger_2',
|
||||||
subSkill:{
|
subSkill:{
|
||||||
2:{
|
2:{
|
||||||
trigger:{global:'phaseBefore'},
|
trigger:{global:['phaseBeforeStart','roundStart']},
|
||||||
silent:true,
|
silent:true,
|
||||||
charlotte:true,
|
charlotte:true,
|
||||||
|
firstDo:true,
|
||||||
priority:100,
|
priority:100,
|
||||||
content:function(){
|
content:function(){
|
||||||
player.removeSkill('counttrigger');
|
player.removeSkill('counttrigger');
|
||||||
|
|
Loading…
Reference in New Issue