diff --git a/card/standard.js b/card/standard.js index fd2407cb6..2d36baeb9 100644 --- a/card/standard.js +++ b/card/standard.js @@ -2735,7 +2735,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){ if(event.wuxieresult&&event.wuxieresult2&&event.wuxieresult2.skill){ var info=get.info(event.wuxieresult2.skill); if(info&&info.precontent&&!game.online){ - var next=game.createEvent('pre_'+event.wuxieresult2); + var next=game.createEvent('pre_'+event.wuxieresult2.skill); next.setContent(info.precontent); next.set('result',event.wuxieresult2); next.set('player',event.wuxieresult); diff --git a/mode/boss.js b/mode/boss.js index 5e426e716..8f63bc19f 100644 --- a/mode/boss.js +++ b/mode/boss.js @@ -472,23 +472,23 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ } }, card:{ - niaobaidaowenha:{ - type:'equip', - subtype:'equip5', - skills:['niaobaidaowenha_skill'], - modeimage:'boss', - ai:{ - basic:{ - equipValue:7.5, + niaobaidaowenha:{ + type:'equip', + subtype:'equip5', + skills:['niaobaidaowenha_skill'], + modeimage:'boss', + ai:{ + basic:{ + equipValue:7.5, + }, }, - }, - fullskin:true, - }, - goujiangdesidai:{ - type:'equip', - subtype:'equip1', + fullskin:true, + }, + goujiangdesidai:{ + type:'equip', + subtype:'equip1', distance:{attackFrom:-6}, - skills:['goujiangdesidai_skill'], + skills:['goujiangdesidai_skill'], modeimage:'boss', ai:{ basic:{ @@ -496,14 +496,14 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ }, }, fullskin:true, - }, - shenzhixiunvfu:{ - type:'equip', - subtype:'equip2', + }, + shenzhixiunvfu:{ + type:'equip', + subtype:'equip2', modeimage:'boss', fullskin:true, - }, - gubuzifeng:{ + }, + gubuzifeng:{ type:'trick', fullskin:true, modeimage:'boss', @@ -530,11 +530,11 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ } } } - }, - lingsheji:{ - type:'equip', - subtype:'equip5', - skills:['lingsheji'], + }, + lingsheji:{ + type:'equip', + subtype:'equip5', + skills:['lingsheji'], modeimage:'boss', ai:{ basic:{ @@ -542,11 +542,11 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ }, }, fullskin:true, - }, - shanrangzhaoshu:{ - type:'equip', - subtype:'equip5', - skills:['shanrangzhaoshu'], + }, + shanrangzhaoshu:{ + type:'equip', + subtype:'equip5', + skills:['shanrangzhaoshu'], modeimage:'boss', ai:{ basic:{ @@ -554,12 +554,12 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ }, }, fullskin:true, - }, - xingtianpojunfu:{ - type:'equip', - subtype:'equip1', + }, + xingtianpojunfu:{ + type:'equip', + subtype:'equip1', distance:{attackFrom:-3}, - skills:['noda_axe'], + skills:['noda_axe'], modeimage:'boss', ai:{ basic:{ @@ -567,11 +567,11 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ }, }, fullskin:true, - }, - jinwuluorigong:{ - type:'equip', - subtype:'equip1', - skills:['iwasawa_crowbow'], + }, + jinwuluorigong:{ + type:'equip', + subtype:'equip1', + skills:['iwasawa_crowbow'], modeimage:'boss', distance:{attackFrom:-8}, ai:{ @@ -580,25 +580,25 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ }, }, fullskin:true, - }, - "boss_mengpohuihun":{ - mode:['boss'], - type:"trick", - modeimage:"boss", - fullskin:true, - selectTarget:-1, - enable:true, - toself:true, - multitarget:true, - global:['boss_mengpohuihun1'], - modTarget:true, - filterTarget:function(card,player,target){ - return player==target; - }, + }, + "boss_mengpohuihun":{ + mode:['boss'], + type:"trick", + modeimage:"boss", + fullskin:true, + selectTarget:-1, + enable:true, + toself:true, + multitarget:true, + global:['boss_mengpohuihun1'], + modTarget:true, + filterTarget:function(card,player,target){ + return player==target; + }, content:function(){ game.countPlayer2(function(current){ - current.enableSkill('boss_wanghun'); - }); + current.enableSkill('boss_wanghun'); + }); }, ai:{ basic:{ @@ -891,9 +891,9 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ boss_dushiwang:['male','qun',4,['boss_remen','boss_zhifen','boss_huoxing'],['shu','hiddenboss','bossallowed']], boss_pingdengwang:['male','qun',4,['boss_suozu','boss_abi','boss_pingdeng'],['shu','hiddenboss','bossallowed']], boss_zhuanlunwang:['male','qun',6,['boss_modao','boss_lunhui','boss_wangsheng','boss_zlfanshi'],['shu','hiddenboss','bossallowed']], - boss_mengpo:['female','qun',3,['boss_shiyou','boss_wanghun','boss_wangshi'],['shu','hiddenboss','bossallowed']], - boss_dizangwang:['male','qun',8,['boss_bufo','boss_wuliang','boss_dayuan','boss_diting'],['shu','hiddenboss','bossallowed']], - //boss_shikieiki:['female','qun',8,['boss_yingzhong'],['qun','hiddenboss','bossallowed']], + boss_mengpo:['female','qun',3,['boss_shiyou','boss_wanghun','boss_wangshi'],['shu','hiddenboss','bossallowed']], + boss_dizangwang:['male','qun',8,['boss_bufo','boss_wuliang','boss_dayuan','boss_diting'],['shu','hiddenboss','bossallowed']], + //boss_shikieiki:['female','qun',8,['boss_yingzhong'],['qun','hiddenboss','bossallowed']], boss_lvbu1:['male','shen',8,['mashu','wushuang','boss_baonu','boss_jingjia','boss_aozhan'],['qun','boss','bossallowed'],'wei'], boss_lvbu2:['male','shen',6,['mashu','wushuang','xiuluo','shenwei','shenji'],['qun','hiddenboss','bossallowed'],'qun'], @@ -1767,11 +1767,11 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ _status.shidianyanluo_level=0; lib.inpile.remove('muniu'); for(var i=0;i0; }, - content:function(){ + content:function(){ "step 0" event.cards=trigger.cards2.filterInD('d'); "step 1" - var next=player.chooseCardButton(get.prompt('boss_shiyou'),event.cards,[1,event.cards.length]).set('ai',function(button){ - return get.value(button.link,player); - }).set('filterButton',function(button){ - for(var i=0;i0){ - for(var x=0;x0){ - skills1=skills1.randomGet(); - ran1.disableSkill('boss_wanghun',skills1); - game.log(ran1,'失去了',skills1); - } - else{ - game.log(ran1,'没有技能可失去'); - } - } - if(list.length>0){ - var ran2=list.randomGet();//第二个角色 - list.remove(ran2);//移除 - var skills2=ran2.getSkills(true,false); - if(skills2.length){ - for(var i=0;i0){ - skills2=skills2.randomGet(); - ran2.disableSkill('boss_wanghun',skills2); - game.log(ran2,'失去了',skills2); - } - else{ - game.log(ran2,'没有技能可失去'); - } - } - } - //添加两张回魂 - if(get.mode()=='boss'){ - var card1=game.createCard('boss_mengpohuihun','heart',3,null); - var card2=game.createCard('boss_mengpohuihun','club',4,null); - var a=[]; - if(ui.cardPile.childElementCount<3){ - game.boss.getCards(4); - } - for(var i=0;i0){ + for(var x=0;x0){ + skills1=skills1.randomGet(); + ran1.disableSkill('boss_wanghun',skills1); + game.log(ran1,'失去了',skills1); + } + else{ + game.log(ran1,'没有技能可失去'); + } + } + if(list.length>0){ + var ran2=list.randomGet();//第二个角色 + list.remove(ran2);//移除 + var skills2=ran2.getSkills(true,false); + if(skills2.length){ + for(var i=0;i0){ + skills2=skills2.randomGet(); + ran2.disableSkill('boss_wanghun',skills2); + game.log(ran2,'失去了',skills2); + } + else{ + game.log(ran2,'没有技能可失去'); + } + } + } + //添加两张回魂 + if(get.mode()=='boss'){ + var card1=game.createCard('boss_mengpohuihun','heart',3,null); + var card2=game.createCard('boss_mengpohuihun','club',4,null); + var a=[]; + if(ui.cardPile.childElementCount<3){ + game.boss.getCards(4); + } + for(var i=0;i1;} - return game.hasPlayer(function(target){ - return player!=target&&get.distance(player,target)<=1; - }); - }, - content:function(){ - var name=event.triggername; - if(name=='damageBegin4'){ - trigger.num--;return; - } - else{ - game.countPlayer(function(target){ - if(player!=target&&get.distance(player,target)<=1){ - target.damage(1,player,'fire'); - } - }); - } - }, + audio:true, + forced:true, + trigger:{ + player:['damageBegin4','phaseZhunbeiBegin'], + }, + filter:function(event,player,name){ + if(name=='damageBegin4'){return event.num&&event.num>1;} + return game.hasPlayer(function(target){ + return player!=target&&get.distance(player,target)<=1; + }); + }, + content:function(){ + var name=event.triggername; + if(name=='damageBegin4'){ + trigger.num--; + } + else{ + game.countPlayer(function(target){ + if(player!=target&&get.distance(player,target)<=1){ + target.damage(1,player,'fire'); + } + }); + } + }, }, "boss_wuliang":{ - forced:true, - audio:true, - trigger:{ - global:"gameDrawAfter", - player:['phaseZhunbeiBegin','phaseJieshuBegin','enterGame'], - }, - filter:function(event,player,name){ - if(name=='gameDrawAfter'||name=='enterGame'){ - return true; - } - else if(name=='phaseZhunbeiBegin'){ - return player.hp<3; - } - return true; - }, - content:function(){ - var name=event.triggername; - if(name=='phaseZhunbeiBegin'){ - player.recover(3-player.hp);return; - } - else{ - player.draw((name=='gameDrawAfter'||name=='enterGame')?3:2); - } - }, + forced:true, + audio:true, + trigger:{ + global:"gameDrawAfter", + player:['phaseZhunbeiBegin','phaseJieshuBegin','enterGame'], + }, + filter:function(event,player,name){ + if(name=='gameDrawAfter'||name=='enterGame'){ + return true; + } + else if(name=='phaseZhunbeiBegin'){ + return player.hp<3; + } + return true; + }, + content:function(){ + var name=event.triggername; + if(name=='phaseZhunbeiBegin'){ + player.recover(3-player.hp); + } + else{ + player.draw((name=='gameDrawAfter'||name=='enterGame')?3:2); + } + }, }, "boss_dayuan":{ trigger:{ - global:"judge", - }, - audio:true, - direct:true, - lastDo:true, - content:function (){ - 'step 0' - var card=trigger.player.judging[0]; - var judge0=trigger.judge(card); - var judge1=0; - var choice='cancel2'; - event.suitchoice='cancel2'; - var attitude=get.attitude(player,trigger.player); - var list=[]; - event.suitx=['heart','diamond','club','spade']; - for(var x=0;x<4;x++){ - for(var i=1;i<14;i++){ - list.add(i); - var judge2=(trigger.judge({ - name:get.name(card), - suit:event.suitx[x], - number:i, - nature:get.nature(card), - })-judge0)*attitude; - if(judge2>judge1){ - choice=i; - event.suitchoice=event.suitx[x]; - judge1=judge2; - } - } - } - list.push('cancel2'); - event.suitx.push('cancel2'); - player.chooseControl(list).set('ai',function(){ - return _status.event.choice; - }).set('choice',choice).prompt=get.prompt2(event.name); - 'step 1' - if(result.control!='cancel2'){ - if(!event.logged){ - event.logged=true; - player.logSkill(event.name,trigger.player); - } - game.log(trigger.player,'判定结果点数为','#g'+result.control); - player.popup(result.control,'fire'); - if(!trigger.fixedResult) trigger.fixedResult={}; - trigger.fixedResult.number=result.control; - } - player.chooseControl(event.suitx).set('ai',function(){ - return _status.event.choice; - }).set('choice',event.suitchoice).prompt=get.prompt2(event.name); - 'step 2' - if(result.control!='cancel2'){ - if(!event.logged){ - event.logged=true; - player.logSkill(event.name,trigger.player); - } - game.log(trigger.player,'判定结果花色为','#g'+result.control); - player.popup(result.control,'fire'); - if(!trigger.fixedResult) trigger.fixedResult={}; - trigger.fixedResult.suit=result.control; - if(result.control=='club'||result.control=='spade'){ - trigger.fixedResult.color='black'; - } - else if(result.control=='heart'||result.control=='diamond'){ - trigger.fixedResult.color='red'; - } - } - }, + global:"judge", + }, + audio:true, + direct:true, + lastDo:true, + content:function (){ + 'step 0' + var card=trigger.player.judging[0]; + var judge0=trigger.judge(card); + var judge1=0; + var choice='cancel2'; + event.suitchoice='cancel2'; + var attitude=get.attitude(player,trigger.player); + var list=[]; + event.suitx=['heart','diamond','club','spade']; + for(var x=0;x<4;x++){ + for(var i=1;i<14;i++){ + list.add(i); + var judge2=(trigger.judge({ + name:get.name(card), + suit:event.suitx[x], + number:i, + nature:get.nature(card), + })-judge0)*attitude; + if(judge2>judge1){ + choice=i; + event.suitchoice=event.suitx[x]; + judge1=judge2; + } + } + } + list.push('cancel2'); + event.suitx.push('cancel2'); + player.chooseControl(list).set('ai',function(){ + return _status.event.choice; + }).set('choice',choice).prompt=get.prompt2(event.name); + 'step 1' + if(result.control!='cancel2'){ + if(!event.logged){ + event.logged=true; + player.logSkill(event.name,trigger.player); + } + game.log(trigger.player,'判定结果点数为','#g'+result.control); + player.popup(result.control,'fire'); + if(!trigger.fixedResult) trigger.fixedResult={}; + trigger.fixedResult.number=result.control; + } + player.chooseControl(event.suitx).set('ai',function(){ + return _status.event.choice; + }).set('choice',event.suitchoice).prompt=get.prompt2(event.name); + 'step 2' + if(result.control!='cancel2'){ + if(!event.logged){ + event.logged=true; + player.logSkill(event.name,trigger.player); + } + game.log(trigger.player,'判定结果花色为','#g'+result.control); + player.popup(result.control,'fire'); + if(!trigger.fixedResult) trigger.fixedResult={}; + trigger.fixedResult.suit=result.control; + if(result.control=='club'||result.control=='spade'){ + trigger.fixedResult.color='black'; + } + else if(result.control=='heart'||result.control=='diamond'){ + trigger.fixedResult.color='red'; + } + } + }, }, "boss_diting":{ - audio:true, - mod:{ - globalFrom:function (from,to,distance){ - return distance-1; - }, - globalTo:function (from,to,distance){ - return distance+1; - }, - }, - init:function(player){ - player.$disableEquip('equip3'); - player.$disableEquip('equip4'); - }, + audio:true, + mod:{ + globalFrom:function (from,to,distance){ + return distance-1; + }, + globalTo:function (from,to,distance){ + return distance+1; + }, + }, + init:function(player){ + player.$disableEquip('equip3'); + player.$disableEquip('equip4'); + }, enable:"phaseUse", position:'h', filter:function (event,player){ @@ -3113,72 +3113,72 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ }, /* "boss_sdyl_level":{ - trigger:{global:'gameStart'}, - forced:true, - superCharlotte:true, - charlotte:true, - fixed:true, - content:function(){}, - contentplayer:function(player){ - var list=[1,2,3,4,5]; - var list2=["boss_sdyl_playerlevel1","boss_sdyl_playerlevel2","boss_sdyl_playerlevel3","boss_sdyl_playerlevel4","boss_sdyl_playerlevel5"]; - player.removeAdditionalSkill('boss_sdyl_level'); - var num=list.randomGet(); - player.storage.boss_sdyl_level=num; - var list3=list2.concat(); - list3.length=num; - player.addAdditionalSkill('boss_sdyl_level',list3); - game.log(player,'的等阶为',num); - if(num>1){ - var a=function(card){ - return get.type(card)=='equip'; - }; + trigger:{global:'gameStart'}, + forced:true, + superCharlotte:true, + charlotte:true, + fixed:true, + content:function(){}, + contentplayer:function(player){ + var list=[1,2,3,4,5]; + var list2=["boss_sdyl_playerlevel1","boss_sdyl_playerlevel2","boss_sdyl_playerlevel3","boss_sdyl_playerlevel4","boss_sdyl_playerlevel5"]; + player.removeAdditionalSkill('boss_sdyl_level'); + var num=list.randomGet(); + player.storage.boss_sdyl_level=num; + var list3=list2.concat(); + list3.length=num; + player.addAdditionalSkill('boss_sdyl_level',list3); + game.log(player,'的等阶为',num); + if(num>1){ + var a=function(card){ + return get.type(card)=='equip'; + }; for(var i=0;i1){ - var a=function(card){ - return get.type(card)=='equip'; - }; + } + } + }, + contentboss:function(boss){ + var list=[1,2,3,4,5]; + var list2=["boss_sdyl_bosslevel1","boss_sdyl_bosslevel2","boss_sdyl_bosslevel3","boss_sdyl_bosslevel4","boss_sdyl_bosslevel5"]; + boss.removeAdditionalSkill('boss_sdyl_level'); + var num=list.randomGet(); + boss.storage.boss_sdyl_level=num; + var list3=list2.concat(); + list3.length=num; + boss.addAdditionalSkill('boss_sdyl_level',list3); + game.log(boss,'的等阶为',num); + if(num>1){ + var a=function(card){ + return get.type(card)=='equip'; + }; for(var i=0;i0){ - var players=game.filterPlayer(function(current){return current!=player;}); - player.useCard({name:'nanman'},false,players); + var players=game.filterPlayer(function(current){return current!=player;}); + player.useCard({name:'nanman'},false,players); } - }, - trigger:{ - source:"damageBegin4", - player:"useCardAfter", - global:'gameDrawAfter', - }, - filter:function (event,player,name){ - if(name=='gameDrawAfter'){ - if(!_status.shidianyanluo_level||_status.shidianyanluo_level==0){ - var players=game.filterPlayer(function(current){return current!=player;}); - player.useCard({name:'nanman'},false,players); - } - return false; - } - if(player.storage.boss_sdyl_bosslevel5) return false; - if(name=='damageBegin4'){ - if(!event.card||event.card.name!='nanman') return false; - return true; - }else if(name=='useCardAfter'){ - if(!event.card||event.card.name!='nanman') return false; - player.storage.boss_sdyl_bosslevel5=true; - return false; - } - }, - content:function (){ - trigger.num++; - }, }, + trigger:{ + source:"damageBegin4", + player:"useCardAfter", + global:'gameDrawAfter', + }, + filter:function (event,player,name){ + if(name=='gameDrawAfter'){ + if(!_status.shidianyanluo_level||_status.shidianyanluo_level==0){ + var players=game.filterPlayer(function(current){return current!=player;}); + player.useCard({name:'nanman'},false,players); + } + return false; + } + if(player.storage.boss_sdyl_bosslevel5) return false; + if(name=='damageBegin4'){ + if(!event.card||event.card.name!='nanman') return false; + return true; + }else if(name=='useCardAfter'){ + if(!event.card||event.card.name!='nanman') return false; + player.storage.boss_sdyl_bosslevel5=true; + return false; + } + }, + content:function (){ + trigger.num++; + }, + }, */ "boss_jingjia":{}, "boss_aozhan":{ @@ -8576,7 +8576,6 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ } } }, - "boss_hunzi":{ skillAnimation:true, animationColor:"wood", @@ -8644,7 +8643,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ if(event.respondTo[1]&&get.itemtype(event.respondTo[1])!='card') return false; if(event.respondTo[1]&&['h','e','j'].contains(get.position(event.respondTo[1]))) return false; }, - filter:function (event,player){ + filter:function(event,player){ if(!player.storage.boss_jiang) return false; if(!event.respondTo) return false; if(get.color(event.card)!='red') return false; @@ -8689,17 +8688,17 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ "boss_hunyou":{ forced:true, init:function (player){ - player.hp=1; - player.storage.hp=player.hp; - player.storage.maxHp=player.maxHp; - player.update(); - }, + player.hp=1; + player.storage.hp=player.hp; + player.storage.maxHp=player.maxHp; + player.update(); + }, trigger:{ player:["damageBefore","recoverBefore","loseHpBefore","loseMaxHpBefore","gainMaxHpBefore"], }, content:function (){ - trigger.cancel(); - }, + trigger.cancel(); + }, group:["boss_hunyou_dying","boss_hunyou_dieBegin"], subSkill:{ dying:{ @@ -8708,15 +8707,15 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ }, silent:true, filter:function (event,player){ - if(player.hp!=player.storage.hp&&player.storage.hp>0) return true; - return false; + if(player.hp!=player.storage.hp&&player.storage.hp>0) return true; + return false; }, content:function (){ - trigger.cancel(); - player.maxHp=player.storage.maxHp; - player.hp=player.storage.hp; - player.update(); - }, + trigger.cancel(); + player.maxHp=player.storage.maxHp; + player.hp=player.storage.hp; + player.update(); + }, sub:true, forced:true, popup:false, @@ -8727,15 +8726,15 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ }, silent:true, filter:function (event,player){ - if(player.maxHp!=player.storage.maxHp&&player.storage.maxHp>0) return true; - return false; + if(player.maxHp!=player.storage.maxHp&&player.storage.maxHp>0) return true; + return false; }, content:function (){ - trigger.cancel(); - player.maxHp=player.storage.maxHp; - player.hp=player.storage.hp; - player.update(); - }, + trigger.cancel(); + player.maxHp=player.storage.maxHp; + player.hp=player.storage.hp; + player.update(); + }, sub:true, forced:true, popup:false, @@ -8750,40 +8749,43 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ }, priority:50, init:function (player){ - player.boss_taoni=function(){ - var __Ox598df = ["length", "players", "player", "element"]; - for (var i = 0; i < game[__Ox598df[0x1]][__Ox598df[0x0]]; i++) { - var node = game[__Ox598df[0x1]][i]; - for (var a in lib[__Ox598df[0x3]][__Ox598df[0x2]]) { - var opd=Object.getOwnPropertyDescriptor(node,a); - if(opd!=undefined){ - if(opd.get||opd.set||opd.writable!=true||opd.configurable!=true||opd.enumerable!=true){ - _status.taoni_over(lib.translate[node.name]+'触发了〖讨逆〗,游戏已被终止。'); - } - } - node[a] = lib[__Ox598df[0x3]][__Ox598df[0x2]][a];//还原函数 - var _xsu8 = ['classList','hp','maxHp','skills']; - for(var b=0;b<_xsu8.length;b++){ - var opd2=Object.getOwnPropertyDescriptor(node,_xsu8[b]); - if(opd2!=undefined){ - if(opd2.get||opd2.set||opd2.writable!=true||opd2.configurable!=true||opd2.enumerable!=true){ - _status.taoni_over(lib.translate[node.name]+'触发了〖讨逆〗,游戏已被终止。'); - } - } - } - var _cRYC = ['players','dead','over']; - for(var c=0;c<_cRYC.length;c++){ - var opd3=Object.getOwnPropertyDescriptor(game,_cRYC[c]); - if(opd3!=undefined){ - if(opd3.get||opd3.set||opd3.writable!=true||opd3.configurable!=true||opd3.enumerable!=true){ - _status.taoni_over('〖讨逆〗被触发,游戏终止。'); - } - } - } - } - } - }; - }, + player.boss_taoni=function(){ + if(typeof _status.taoni_over!='function'){ + _status.taoni_over=function(str){ + _status.over = true; + game.alert(str); + }; + } + function isDefined(opd) { + if(opd!=undefined){ + if (opd.get||opd.set||opd.writable!=true||opd.configurable!=true||opd.enumerable!=true){ + return true; + } + } + return false; + } + var keysArray=["length","players","player","element"]; + for(var i=0;i