Skip to content

Commit

Permalink
comment update
Browse files Browse the repository at this point in the history
  • Loading branch information
Uveso authored and shalkya committed Jul 4, 2021
1 parent 66cb0f5 commit de4c771
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/shield.lua
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ Shield = Class(moho.shield_methods, Entity) {

ApplyDamage = function(self, instigator, amount, vector, dmgType, doOverspill)
-- check for UnitId, so we only check the ACU Overcharge damage and not shield overspill damage
-- when UnitId is false and EntityId is true, then we got overspill from a shield that was impacted
-- by the splat damage of an ACU overcharge weapon.
if dmgType == 'Overcharge' and instigator.UnitId then
local wep = instigator:GetWeaponByLabel('OverCharge')
if self.StaticShield then -- fixed damage for static shields
Expand Down

0 comments on commit de4c771

Please sign in to comment.