This commit is contained in:
aozhiwei 2024-07-09 14:58:24 +08:00
parent 347e122226
commit 2801ed1805
2 changed files with 16 additions and 1 deletions

View File

@ -2454,6 +2454,18 @@ void Creature::OnBattleStart(Room* room)
A8_ABORT();
}
#endif
if (GetNetData()->HasWing()) {
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) {
TryAddBuff(this, 1029000101);

View File

@ -1359,9 +1359,12 @@ void BattleDataContext::RecalcCrit()
bool BattleDataContext::HasWing()
{
#ifdef MYDEBUG
return true;
#endif
if (hero_dto) {
long long token_id = hero_dto->Get("token_id", "");
if (token_id >= 6240619010000001 && token_id <= 6240619010000100) {
if (token_id > 66240603010001668 && token_id <= 6240603010002168) {
return true;
}
if (token_id == 6240603010001523) {