Update Unit.lua

- GetAmmo HE shells can also be named "HESH"
This commit is contained in:
Frank 2025-05-02 21:36:03 +02:00
parent 0c90e90c18
commit f1af3a50b8

View File

@ -897,7 +897,7 @@ function UNIT:GetAmmunition()
nAPshells = nAPshells + Nammo
end
if ammotable[w].desc.typeName and string.find(ammotable[w].desc.typeName, "_HE", 1, true) then
if ammotable[w].desc.typeName and (string.find(ammotable[w].desc.typeName, "_HE", 1, true) or string.find(ammotable[w].desc.typeName, "HESH", 1, true)) then
nHEshells = nHEshells + Nammo
end