This commit is contained in:
aozhiwei 2023-03-15 15:38:32 +08:00
parent 60cbd67d29
commit b987cf5464

View File

@ -73,6 +73,7 @@ void HideBuff::Check()
for (auto& pair : alert_buff_hash_) {
auto& tuple = pair.second;
if (std::get<2>(tuple) < step_) {
if (std::get<0>(tuple).Get()) {
if (Collision::CheckCC(owner,
alert_range,
std::get<0>(tuple).Get(),
@ -81,11 +82,8 @@ void HideBuff::Check()
} else {
leave_targets.push_back(pair.first);
}
if (std::get<0>(tuple).Get()) {
} else {
leave_targets.push_back(pair.first);
}
}
}