Skip to content

Commit

Permalink
Update XAB3301_script.lua
Browse files Browse the repository at this point in the history
Added extra check that the unit is constructed per Jip comment
  • Loading branch information
maudlin27 authored Nov 19, 2024
1 parent 6cc4baa commit 9cce88f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion units/XAB3301/XAB3301_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ XAB3301 = ClassUnit( AStructureUnit ) {
end,

CreateVisibleEntity = function(self)
if not(self.GetFractionComplete) or self:GetFractionComplete() < 1 then return nil end
AStructureUnit.CreateVisibleEntity(self)

if self.RemoteViewingData.VisibleLocation and self.RemoteViewingData.DisableCounter == 0 and self.RemoteViewingData.IntelButton then
Expand Down Expand Up @@ -74,4 +75,4 @@ XAB3301 = ClassUnit( AStructureUnit ) {
end,
}

TypeClass = XAB3301
TypeClass = XAB3301

0 comments on commit 9cce88f

Please sign in to comment.