Templar Bug.

01/16/2020 07:25 LuciferMorningStar666#1
Hello, I was wondering, any tips why the templar at my files cannot wear 2handed + shields?

The 2 handed is IK3_TXAXE TWO_HAND, and for the shield is ONE_HAND... Tips? Or might be in the source?
01/16/2020 07:28 Naltalah#2
It definitely is in the source, since the Behemoth Shield always has been the only one equippable with a 2h weapon.

I suggest looking at CMover:: DoEquip, especially looking at IK3_SHIELD.

Probably everything after this section:
Code:
		if( pItemProp->dwItemKind3 == IK3_SHIELD )	
		{
			if( pHandItemProp && pHandItemProp->dwHanded == HD_TWO )	
			{
				if( pInventory )
				{
					CItemElem *pItemElemOld = pInventory->GetEquip( PARTS_RWEAPON );
					if( pInventory->UnEquip( PARTS_RWEAPON ) == FALSE )	
						return FALSE;