Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit e03cec2

Browse files
committed
Remove forced BG-item equipping, and force unequipping of BG items when FG item is two-handed
1 parent efed75e commit e03cec2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Entities/AHuman.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3875,8 +3875,10 @@ void AHuman::Update()
38753875
m_pBGArm->ReachToward(m_pBGHandGroup->GetLimbPos(m_HFlipped));
38763876

38773877
} else {
3878-
if (m_pFGArm && m_pFGArm->HoldsHeldDevice() && !m_pBGArm->HoldsHeldDevice()) {
3879-
if (!EquipShieldInBGArm()) {
3878+
if (HeldDevice * heldDevice = dynamic_cast<HeldDevice *>(GetEquippedItem())) {
3879+
if (GetEquippedBGItem() && !heldDevice->IsOneHanded()) {
3880+
UnequipBGArm();
3881+
} else {
38803882
m_pBGArm->Reach(m_pFGArm->GetHeldDevice()->GetSupportPos());
38813883
if (m_pBGArm->DidReach()) {
38823884
m_pFGArm->GetHeldDevice()->SetSupported(true);

0 commit comments

Comments
 (0)