Skip to content

Commit fe7051b

Browse files
committed
feat: pre:appendCard() event
1 parent 2713634 commit fe7051b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
1. Fixed persistent arena background
1111
1. Fixed in-game emotes not being disabled
1212
1. Fixed some spectate events not working
13+
1. Fixed a bug when spectating as a guest
14+
### Misc
15+
1. Battle log now shows artifact details
16+
### Plugins
17+
1. Added `pre:appendCard()` event
1318

1419
## Version 0.48.0 (2022-01-23)
1520
### New Features

src/base/vanilla/card.append.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { globalSet } from '../../utils/global';
33

44
eventManager.on(':loaded', () => {
55
globalSet('appendCard', function appendCard(card, container) {
6+
eventManager.emit('pre:appendCard()', card);
67
const element = this.super(card, container);
78
eventManager.emit('appendCard()', {
89
card, element,

0 commit comments

Comments
 (0)