Merge pull request #621 from universe-st/PR-Branch-1108

对GameEvent.insertAfter的参数做空值判断
This commit is contained in:
Spmario233 2023-11-09 00:01:45 +08:00 committed by GitHub
commit 167af13ad1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -31390,14 +31390,18 @@
const next=new lib.element.GameEvent(`${this.name}Inserted`,false);
this.next.push(next);
next.setContent(content);
if(map){
Object.entries(map).forEach(entry=>next.set(entry[0],entry[1]));
}
return next;
}
insertAfter(content,map){
const next=new lib.element.GameEvent(`${this.name}Inserted`,false);
this.after.push(next);
next.setContent(content);
if(map){
Object.entries(map).forEach(entry=>next.set(entry[0],entry[1]));
}
return next;
}
backup(skill){