修复炉石bug

This commit is contained in:
libccy 2015-05-06 18:22:42 +08:00
parent efd3f16042
commit cd44b02618
2 changed files with 21 additions and 2 deletions

View File

@ -154,6 +154,7 @@ card.extra={
target:function(player,target){
if(target.classList.contains('linked')) return 1;
if(ai.get.attitude(player,target)>=0) return -1;
if(player.isMin()) return -1;
for(var i=0;i<game.players.length;i++){
if(ai.get.attitude(player,game.players[i])<=-1&&
game.players[i]!=target&&!game.players[i].isLinked()){

View File

@ -784,7 +784,12 @@ mode.stone={
stone_yiji:['female','qun',1,['stone_yiji'],['minskin','stone'],[2,2]],
},
skill:{
chaofeng:{},
chaofeng:{
mark:true,
intro:{
content:'已获得嘲讽'
}
},
_chaofeng:{
mod:{
targetEnabled:function(card,player,target){
@ -833,10 +838,23 @@ mode.stone={
if(result.bool){
event.chooser.line(result.targets[0]);
game.delay();
result.targets[0].loseHp();
result.targets[0].addSkill('stone_sanxian2');
}
}
},
stone_sanxian2:{
trigger:{global:'dieAfter'},
forced:true,
popup:false,
unique:true,
filter:function(event,player){
return player.skills.contains('stone_sanxian2');
},
content:function(){
player.loseHp();
player.removeSkill('stone_sanxian2');
}
},
stone_banxian:{
trigger:{player:'dieBegin'},
forced:true,