This commit is contained in:
aozhiwei 2024-10-16 16:21:08 +08:00
parent 5d067f231c
commit c956c238e7

View File

@ -1415,16 +1415,16 @@ bool BattleDataContext::HasWing()
bool BattleDataContext::HideBigEventBox()
{
bool visible = GetTotalLucky() < 0.01f;
if (!visible) {
bool hide = GetTotalLucky() < 0.01f;
if (hide) {
for (auto& item : items_) {
if (std::get<0>(item) == 900007) {
visible = true;
hide = false;
break;
}
}
}
return visible;
return hide;
}
float BattleDataContext::GetTotalLucky()