Skip to content

Commit

Permalink
Removing an unneeded "GG" from unit_targetting_metal_limit
Browse files Browse the repository at this point in the history
  • Loading branch information
danfireman committed May 9, 2020
1 parent 933af80 commit e09f416
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LuaRules/Gadgets/unit_targetting_metal_limit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ local preventChaffShootingCmdDesc = {
params = {0, 0, 100, 300, 1000}
}

function GG.ChaffShootingPrevention_CheckMinMetal(unitID, targetID, damage)
function ChaffShootingPrevention_CheckMinMetal(unitID, targetID, damage)
if not (unitID and targetID and unitMetalMin[unitID]) then
return false
end
Expand Down Expand Up @@ -182,7 +182,7 @@ function gadget:UnitDestroyed(unitID)
end

function gadget:AllowWeaponTarget(unitID, targetID, attackerWeaponNum, attackerWeaponDefID, defPriority)
if GG.ChaffShootingPrevention_CheckMinMetal(unitID, targetID) then
if ChaffShootingPrevention_CheckMinMetal(unitID, targetID) then
return false, defPriority
end
return true, defPriority
Expand Down

0 comments on commit e09f416

Please sign in to comment.