diff --git a/server/gameserver/buff/summon_loot.cc b/server/gameserver/buff/summon_loot.cc index 03af935f..614bab25 100644 --- a/server/gameserver/buff/summon_loot.cc +++ b/server/gameserver/buff/summon_loot.cc @@ -17,7 +17,7 @@ void SummonLootBuff::Activate() float y = meta->GetBuffParam3(this); float z = meta->GetBuffParam4(this); int flag = meta->_int_buff_param5; - float show_time = meta->GetBuffParam5(this); + float show_time = meta->GetBuffParam6(this); const mt::Equip* equip_meta = mt::Equip::GetById(equip_id); if (equip_meta) { int loot_uniid = owner->room->CreateLoot @@ -42,6 +42,7 @@ void SummonLootBuff::Activate() [loot] (int event, const a8::Args* args) mutable { if (a8::TIMER_EXEC_EVENT == event) { + loot->pickuped = true; loot->room->RemoveObjectLater(loot); } },