1
This commit is contained in:
parent
9503ffd985
commit
2e64330690
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -93,6 +93,7 @@ struct BattleDataContext
|
||||
bool IsMainSkill(Skill* skill);
|
||||
int GetCurrentGetStar();
|
||||
int GetBattleTimes();
|
||||
bool HasWing();
|
||||
|
||||
int GetHonor();
|
||||
int GetElo() { return elo_; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user