1
This commit is contained in:
parent
347e122226
commit
2801ed1805
@ -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);
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user