Skip to content

Commit

Permalink
pk检测加一个事件
Browse files Browse the repository at this point in the history
PK_INFO会随着赠礼改变
  • Loading branch information
luyanci committed Jan 22, 2025
1 parent cf0e447 commit b5a0804
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/pk.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def events(event:str):
global send_msg
roomcfg=api.get('roomcfg')
send_msg=api.get('send_msg')
if event['type']=='PK_BATTLE_PRE':
if event['type'] in ['PK_BATTLE_PRE','PK_BATTLE_PRE_NEW']:
pki=LiveRoom(event['data']['data']['room_id'],credential=c)
users=User(event['data']['data']['uid'],credential=c)
guards_num=sync(pki.get_dahanghai(1))['info']['num']
Expand Down

0 comments on commit b5a0804

Please sign in to comment.