This commit is contained in:
aozhiwei 2023-11-08 11:07:48 +08:00
parent bd1bef76cb
commit cf3eb7a1e0
2 changed files with 10 additions and 4 deletions

View File

@ -286,10 +286,16 @@ void CallFuncBuff::ProcAddMinorMode()
{
if (owner_ptr.Get()) {
if (action == 1) {
owner_ptr.Get()->TryAddBuff(owner_ptr.Get(), meta_ptr->_int_buff_param4, skill_meta_ptr);
owner_ptr.Get()->RemoveBuffById(meta_ptr->_int_buff_param6);
for (int buff_id : meta_ptr->_buff_param4_int_list) {
owner_ptr.Get()->TryAddBuff(owner_ptr.Get(), buff_id, skill_meta_ptr);
}
for (int buff_id : meta_ptr->_buff_param6_int_list) {
owner_ptr.Get()->RemoveBuffById(buff_id);
}
} else if (action == 0) {
owner_ptr.Get()->TryAddBuff(owner_ptr.Get(), meta_ptr->_int_buff_param5, skill_meta_ptr);
for (int buff_id : meta_ptr->_buff_param5_int_list) {
owner_ptr.Get()->TryAddBuff(owner_ptr.Get(), buff_id, skill_meta_ptr);
}
}
}
});

View File

@ -475,7 +475,7 @@ void Team::GenBattleReportData(Human* player, a8::MutableXObject* params)
void Team::GenBattleUuid()
{
std::string battle_uuid = 0;
std::string battle_uuid;
for (Human* hum : members_) {
if (!hum->battle_uuid.empty()) {
battle_uuid = hum->battle_uuid;