anguo
This commit is contained in:
parent
898fc353a0
commit
e5c74c3f78
|
@ -311,10 +311,19 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
player.draw();
|
||||
}
|
||||
if(!event.hp&&player.isMinHp()&&player.isDamaged()){
|
||||
target.recover();
|
||||
player.recover();
|
||||
}
|
||||
if(!event.e&&player.isMinEquip()){
|
||||
player.equip(game.createCard(get.inpile('equip').randomGet()),true);
|
||||
var list=[];
|
||||
for(var i in lib.cardPile){
|
||||
for(var j=0;j<lib.cardPile[i].length;i++){
|
||||
var name=lib.cardPile[i][j][0];
|
||||
if(lib.inpile.contains(name)&&get.type(name)=='equip'){
|
||||
list.push(lib.cardPile[i][j]);
|
||||
}
|
||||
}
|
||||
}
|
||||
player.equip(game.createCard(list.randomGet()),true);
|
||||
}
|
||||
},
|
||||
ai:{
|
||||
|
|
Loading…
Reference in New Issue