Merge pull request #274 from Tipx-L/PR-Branch

Use Object.defineProperty, and Object.getOwnPropertyDescriptor to initialize instead.
This commit is contained in:
Spmario233 2023-09-05 18:46:48 +08:00 committed by GitHub
commit 16340a218d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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){