This commit is contained in:
aozhiwei 2024-07-05 11:57:00 +08:00
parent 9503ffd985
commit 2e64330690
3 changed files with 18 additions and 0 deletions

View File

@ -2454,6 +2454,9 @@ void Creature::OnBattleStart(Room* room)
A8_ABORT();
}
#endif
if (GetNetData()->HasWing()) {
TryAddBuff(this, 1029000101);
}
for (int item_id : GetNetData()->GetAvatars()) {
if (item_id == 290001) {
TryAddBuff(this, 1029000101);

View File

@ -1356,3 +1356,17 @@ void BattleDataContext::RecalcCrit()
{
hero_ability_->RecalcCrit();
}
bool BattleDataContext::HasWing()
{
if (hero_dto) {
long long token_id = hero_dto->Get("token_id", "");
if (token_id >= 6240619010000001 && token_id <= 6240619010000100) {
return true;
}
if (token_id == 6240603010001523) {
return true;
}
}
return false;
}

View File

@ -93,6 +93,7 @@ struct BattleDataContext
bool IsMainSkill(Skill* skill);
int GetCurrentGetStar();
int GetBattleTimes();
bool HasWing();
int GetHonor();
int GetElo() { return elo_; }