This commit is contained in:
aozhiwei 2021-05-12 11:04:24 +08:00
parent 006414428e
commit 55e3d40cf8

View File

@ -223,6 +223,7 @@ void Buff::ProcDriver(Creature* caster)
if (hum->GetCar() && hum->GetCar()->GetCurrWeapon()) {
hold_weapons_.push_back(hum->weapons[hum->GetCar()->GetCurrWeapon()->weapon_idx]);
hum->weapons[hum->GetCar()->GetCurrWeapon()->weapon_idx] = *hum->GetCar()->GetCurrWeapon();
hum->SetCurrWeapon(&hum->weapons[hum->GetCar()->GetCurrWeapon()->weapon_idx]);
if (hum->GetCar()->meta && !hum->GetCar()->meta->shoot_offsets.empty()) {
hum->shoot_offset = hum->GetCar()->meta->shoot_offsets[0];
hum->GetCar()->shoot_offset = hum->GetCar()->meta->shoot_offsets[0];