higher chance of shooting when infantry

This commit is contained in:
2025-05-26 00:16:35 +02:00
parent 0d6809552d
commit 28564b30d0
@@ -148,6 +148,11 @@ function BattleManager:LetUnitsShoot(groups, targetGroups)
for _, unit in pairs(units) do
if self:IsUnitApplicable(unit) == true then
if unit:hasAttribute("Infantry") == true then
shootChance = 0.8
end
if math.random() <= shootChance then
local unitPos = unit:getPoint()
local point = self:GetRandomPoint({x = unitPos.x, y = unitPos.z }, targetGroups)