Fix: only check for rate of fire for weapons

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8628 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2018-10-07 20:59:43 +00:00
parent 7a49e4921a
commit 0447130826
+3
View File
@@ -2068,6 +2068,9 @@ INT16 BaseAPsToShootOrStab( INT16 bAPs, INT16 bAimSkill, OBJECTTYPE * pObj, SOLD
//CHRISL: Resolves a problem with stackable weapons not using attachments like Reflex sight. Found by Mugsy
//if (ItemSlotLimit(pObj, STACK_SIZE_LIMIT) == 1)//NOT STACKABLE!
// be sure to only check weapons
if ( Item[pObj->usItem].usItemClass & ( IC_WEAPON | IC_PUNCH ) )
{
rof += GetRateOfFireBonus(pObj);
}