This commit is contained in:
aozhiwei 2023-05-26 17:21:28 +08:00
parent 4c281b530a
commit 1cfa2fd7b5
2 changed files with 4 additions and 1 deletions

View File

@ -73,7 +73,7 @@ void Compose::TakeOnWeapon(Weapon* weapon)
Clear();
auto merge_item_meta = mt::MergeItem::GetById(weapon->meta->id());
if (merge_item_meta) {
std::set<int>* buffs = merge_item_meta->GetBuffs(num_ + 1);
std::set<int>* buffs = merge_item_meta->GetBuffs((num_ + 1) / 3);
if (buffs) {
for (int buff_id : *buffs) {
hold_buffs_.push_back(owner_->TryAddBuff(owner_, buff_id, nullptr));

View File

@ -540,6 +540,9 @@ void Creature::RemoveBuffByUniId(int buff_uniid)
break;
}
}
if (buff_id == 401041) {
int i = 0;
}
for (auto& tuple1 : removed_buffs) {
const mt::Buff* buff_meta = std::get<0>(tuple1);
Creature* caster = std::get<1>(tuple1);