Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lL1l1 committed Nov 18, 2024
1 parent 27b977c commit 9948335
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lua/sim/Unit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Unit = ClassUnit(moho.unit_methods, IntelComponent, VeterancyComponent, DebugUni
FxDamage2 = {EffectTemplate.DamageFireSmoke01, EffectTemplate.DamageSparks01},
FxDamage3 = {EffectTemplate.DamageFire01, EffectTemplate.DamageSparks01},

-- Disables all collisions. This will be true for all units being constructed as upgrades
-- Disables all collisions. This will be true for all units being constructed as upgrades and dead units
DisallowCollisions = false,

-- Destruction parameters
Expand Down Expand Up @@ -1574,7 +1574,7 @@ Unit = ClassUnit(moho.unit_methods, IntelComponent, VeterancyComponent, DebugUni
---@param firingWeapon Weapon The weapon that the projectile originates from
---@return boolean
OnCollisionCheck = function(self, other, firingWeapon)
-- bail out immediately
-- dead unit or unit that is an upgrade
if self.DisallowCollisions then
return false
end
Expand All @@ -1595,8 +1595,7 @@ Unit = ClassUnit(moho.unit_methods, IntelComponent, VeterancyComponent, DebugUni
---@param firingWeapon Weapon The weapon the beam originates from that we're checking the collision with
---@return boolean
OnCollisionCheckWeapon = function(self, firingWeapon)

-- bail out immediately
-- dead unit or unit that is an upgrade
if self.DisallowCollisions then
return false
end
Expand Down

0 comments on commit 9948335

Please sign in to comment.