This commit is contained in:
aozhiwei 2024-07-05 13:56:36 +08:00
parent 2e64330690
commit 3ef95fe2d0

View File

@ -2455,7 +2455,16 @@ void Creature::OnBattleStart(Room* room)
}
#endif
if (GetNetData()->HasWing()) {
TryAddBuff(this, 1029000101);
room->xtimer.SetTimeoutWpEx
(
2 * SERVER_FRAME_RATE,
[this] (int event, const a8::Args* args)
{
if (a8::TIMER_EXEC_EVENT == event) {
TryAddBuff(this, 1029000101);
}
},
&xtimer_attacher);
}
for (int item_id : GetNetData()->GetAvatars()) {
if (item_id == 290001) {