This commit is contained in:
aozhiwei 2021-09-18 14:29:59 +08:00
parent 488a08737f
commit 42c136434e

View File

@ -1115,6 +1115,30 @@ namespace MetaData
assert(int_param1 < i->duration_time() * 1000);
}
break;
case kBET_BatchAddBuff:
{
for (auto& tuple : batch_add_list) {
int rand_space = std::get<0>(tuple);
const auto& items = std::get<1>(tuple);
if (items.empty()) {
abort();
}
if (rand_space == -1) {
MetaData::Buff* buff_meta = MetaMgr::Instance()->GetBuff(std::get<0>(items[0]));
if (!buff_meta) {
abort();
}
} else {
for (const auto& item : items) {
MetaData::Buff* buff_meta = MetaMgr::Instance()->GetBuff(std::get<0>(item));
if (!buff_meta) {
abort();
}
}
}
}
}
break;
default:
{
}