【'+get.translation(lib.translate[storage.current2+'_ab']||get.translation(storage.current2).slice(0,2))+'】
'+get.skillInfoTranslation(storage.current2,player)+'
');
if(storage&&storage.character.length){
if(player.isUnderControl(true)){
dialog.addSmall([storage.character,'character']);
@@ -6480,9 +6473,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
cardEnabled:function(){
return false;
},
- cardUsable:function(){
- return false;
- },
cardRespondable:function(){
return false;
},
@@ -6543,6 +6533,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player:["changeHp"],
},
audio:2,
+ audioname:{gongsunzan:'yicong'},
forced:true,
filter:function(event,player){
return get.sgn(player.hp-2.5)!=get.sgn(player.hp-2.5-event.num);
diff --git a/character/shenhua.js b/character/shenhua.js
index de8125469..01148ef06 100755
--- a/character/shenhua.js
+++ b/character/shenhua.js
@@ -965,18 +965,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return true;
}
},
- cardUsable:function (card,player,num){
- if(typeof num=='number'&&game.hasPlayer(function(current){
- return current.hasSkill('drlt_xiongluan2');
- })) return num+100;
- },
- playerEnabled:function (card,player,target){
- if(game.hasPlayer(function(current){
- return current.hasSkill('drlt_xiongluan2');
- })&&!target.hasSkill('drlt_xiongluan2')){
- var num=player.getCardUsable(card)-100;
- if(num<=0) return false;
- }
+ cardUsableTarget:function(card,player,target){
+ if(target.hasSkill('drlt_xiongluan2')) return true;
},
},
},
diff --git a/character/sp.js b/character/sp.js
index 0c0718cea..85fdaaa18 100755
--- a/character/sp.js
+++ b/character/sp.js
@@ -848,7 +848,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
card.remove();
card=game.createCard('qibaodao',card.suit,card.number);
}
- targets[0].chooseUseTarget(card,true,'nopopup','noanimate');
+ targets[0].chooseUseTarget(card,true,'nopopup','nothrow');
}
else{
player.chat('没有装备牌了吗');
@@ -2440,14 +2440,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
targetInRange:function (card,player,target){
if(target==player.storage.zhengbi_eff1) return true;
},
- cardUsable:function (card,player,num){
- if(typeof num=='number'&&player.storage.zhengbi_eff1&&player.storage.zhengbi_eff1.isAlive()) return num+100;
- },
- playerEnabled:function (card,player,target){
- if(player.storage.zhengbi_eff1.isAlive()&&player.storage.zhengbi_eff1&&target!=player.storage.zhengbi_eff1){
- var num=player.getCardUsable(card)-100;
- if(num<=0) return false;
- }
+ cardUsableTarget:function (card,player,target){
+ if(player.storage.zhengbi_eff1==target) return true;
},
},
onremove:true,
@@ -3518,7 +3512,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
equip1=game.createCard2('qibaodao',equip1.suit,equip1.number);
}
target.$draw(equip1);
- target.chooseUseTarget(true,equip1,'noanimate','nopopup');
+ target.chooseUseTarget(true,equip1,'nothrow','nopopup');
game.delay();
'step 2'
game.updateRoundNumber();
@@ -10265,11 +10259,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return false;
}
},
- cardUsable:function(card,player){
- if(player.storage.zuixiang2&&player.storage.zuixiang2.contains(get.type(card,'trick'))){
- return false;
- }
- },
cardRespondable:function(card,player){
if(player.storage.zuixiang2&&player.storage.zuixiang2.contains(get.type(card,'trick'))){
return false;
@@ -12151,20 +12140,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
content:'players'
},
mod:{
- cardUsable:function(card,player,num){
- if(typeof num=='number') return num+100;
- },
- playerEnabled:function(card,player,target){
- var bool=false;
- if(player.storage.huxiao3&&ui.selected.targets.length){
- for(var i=0;i