This commit is contained in:
libccy 2018-06-13 12:06:17 +08:00
parent 898fc353a0
commit e5c74c3f78
1 changed files with 11 additions and 2 deletions

View File

@ -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:{