Use Object.defineProperty, and Object.getOwnPropertyDescriptor to initialize instead.
This commit is contained in:
parent
6edcea8e3d
commit
20fd89213e
|
@ -646,6 +646,12 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
|||
* @deprecated
|
||||
*/
|
||||
_yongjian_zengyu:{
|
||||
get forceLoad(){
|
||||
return lib.skill._gifting.forceLoad;
|
||||
},
|
||||
set forceLoad(forceLoad){
|
||||
lib.skill._gifting.forceLoad=forceLoad;
|
||||
},
|
||||
get filter(){
|
||||
return lib.skill._gifting.filter;
|
||||
},
|
||||
|
|
|
@ -9200,7 +9200,7 @@
|
|||
};
|
||||
}
|
||||
else{
|
||||
lib[j][k]=character[i][j][k];
|
||||
Object.defineProperty(lib[j],k,Object.getOwnPropertyDescriptor(character[i][j],k));
|
||||
}
|
||||
if(j=='card'&&lib[j][k].derivation){
|
||||
if(!lib.cardPack.mode_derivation){
|
||||
|
|
Loading…
Reference in New Issue