1
This commit is contained in:
parent
4c281b530a
commit
1cfa2fd7b5
@ -73,7 +73,7 @@ void Compose::TakeOnWeapon(Weapon* weapon)
|
|||||||
Clear();
|
Clear();
|
||||||
auto merge_item_meta = mt::MergeItem::GetById(weapon->meta->id());
|
auto merge_item_meta = mt::MergeItem::GetById(weapon->meta->id());
|
||||||
if (merge_item_meta) {
|
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) {
|
if (buffs) {
|
||||||
for (int buff_id : *buffs) {
|
for (int buff_id : *buffs) {
|
||||||
hold_buffs_.push_back(owner_->TryAddBuff(owner_, buff_id, nullptr));
|
hold_buffs_.push_back(owner_->TryAddBuff(owner_, buff_id, nullptr));
|
||||||
|
@ -540,6 +540,9 @@ void Creature::RemoveBuffByUniId(int buff_uniid)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (buff_id == 401041) {
|
||||||
|
int i = 0;
|
||||||
|
}
|
||||||
for (auto& tuple1 : removed_buffs) {
|
for (auto& tuple1 : removed_buffs) {
|
||||||
const mt::Buff* buff_meta = std::get<0>(tuple1);
|
const mt::Buff* buff_meta = std::get<0>(tuple1);
|
||||||
Creature* caster = std::get<1>(tuple1);
|
Creature* caster = std::get<1>(tuple1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user