2,875
edits
No edit summary |
No edit summary |
||
Line 83: | Line 83: | ||
-- Don't leap in one handed weapons with two handed. | -- Don't leap in one handed weapons with two handed. | ||
if slotLocalID == 'Weapon' | -- Include throwables with one handed weapons | ||
return | if slotLocalID == 'Weapon' then | ||
if Items._getItemStat(item, 'isTwoHanded') then | |||
return false | |||
end | |||
if Shared.contains({'Javelins', 'ThrowingKnives'}, item.ammoType) then | |||
return true | |||
end | |||
-- Exclude throwables from ammo. | |||
elseif slotLocalID == 'Quiver' then | |||
if Shared.contains({'Javelins', 'ThrowingKnives'}, item.ammoType) then | if Shared.contains({'Javelins', 'ThrowingKnives'}, item.ammoType) then | ||
return false | return false |
edits