# HG changeset patch # User Wuzzy # Date 1543976913 -3600 # Node ID a7769dbd7088504c11673d2d7b1e258838c3ce01 # Parent 02841325495e2f08fa23919f635bf9ad9010cb7f Fix cluster bomb target practice counting clusters as "shots" diff -r 02841325495e -r a7769dbd7088 share/hedgewars/Data/Scripts/TargetPractice.lua --- a/share/hedgewars/Data/Scripts/TargetPractice.lua Tue Dec 04 16:48:43 2018 +0100 +++ b/share/hedgewars/Data/Scripts/TargetPractice.lua Wed Dec 05 03:28:33 2018 +0100 @@ -226,8 +226,10 @@ end _G.onGearAdd = function(gear) + if GetGearType(gear) == params.gearType then + shots = shots + 1 + end if GetGearType(gear) == params.gearType or (params.secGearType and GetGearType(gear) == params.secGearType) then - shots = shots + 1 gearsInGameCount = gearsInGameCount + 1 gearsInGame[gear] = true end