Skip to content

Commit

Permalink
Shield re rework hotfix (#4110)
Browse files Browse the repository at this point in the history
Hotfix
Apparently there's a legion unit somewhere that doesn't have customparams. How is that even possible?
  • Loading branch information
SethDGamre authored Jan 4, 2025
1 parent c121ebc commit acae584
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gamedata/alldefs_post.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1536,6 +1536,7 @@ function WeaponDef_Post(name, wDef)
end

if ((not wDef.interceptedbyshieldtype or wDef.interceptedbyshieldtype ~= 1) and wDef.weapontype ~= "Cannon") then
wDef.customparams = wDef.customparams or {}
wDef.customparams.shield_aoe_penetration = true
end

Expand Down

0 comments on commit acae584

Please sign in to comment.