Skip to content

Commit

Permalink
Fix seraphim support commander build effect (FAForever#3753)
Browse files Browse the repository at this point in the history
Adds the default build effect to the construction of the Seraphim support commanders. This effect is used on all the other Seraphim units and buildings.
  • Loading branch information
Garanas authored Mar 31, 2022
1 parent de2d362 commit bdd4820
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions units/XSL0301/XSL0301_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ XSL0301 = Class(CommandUnit) {
self:GetWeaponByLabel('AutoOverCharge').NeedsUpgrade = true
end,

StartBeingBuiltEffects = function(self, builder, layer)
CommandUnit.StartBeingBuiltEffects(self, builder, layer)
self:ForkThread( EffectUtil.CreateSeraphimBuildThread, builder, self.OnBeingBuiltEffectsBag, 2 )
end,

CreateBuildEffects = function(self, unitBeingBuilt, order)
EffectUtil.CreateSeraphimUnitEngineerBuildingEffects(self, unitBeingBuilt, self.BuildEffectBones, self.BuildEffectsBag)
end,
Expand Down

0 comments on commit bdd4820

Please sign in to comment.