Use Object.defineProperty, and Object.getOwnPropertyDescriptor to initialize instead.

This commit is contained in:
Tipx-L 2023-09-05 01:23:51 -07:00
parent 6edcea8e3d
commit 20fd89213e
2 changed files with 7 additions and 1 deletions

View File

@ -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;
},

View File

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