Skip to content

Commit df9c58e

Browse files
committed
Removed code that does nothing
Due to the new scaling of static particle, the effect already disapears before the ball disappears. No reason to have this rule param turning it off.
1 parent 72d6561 commit df9c58e

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

LuaUI/Configs/lupsUnitFXs.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ effectUnitDefs = {
5555
--// FUSIONS //--------------------------
5656
energysingu = {
5757
{class='Bursts', options=energysinguBursts},
58-
{class='StaticParticles', options=MergeTable(energysinguCorona, {onUnitRulesParam = "ballShow", piece="energyball", sizeScaleParam="ballSwell"})},
58+
{class='StaticParticles', options=MergeTable(energysinguCorona, {piece="energyball", sizeScaleParam="ballSwell"})},
5959
--{class='ShieldSphere', options=energysinguShieldSphere},
6060
--{class='ShieldJitter', options={layer=-16, life=math.huge, pos={0,58.9,0}, size=100, precision=22, strength = 0.001, repeatEffect=true}},
6161
{class='GroundFlash', options=groundFlashOrange},

scripts/energysingu.lua

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,10 @@ local function SizeControl()
3131
else
3232
ballSize = 1
3333
Hide(energyball)
34-
spSetUnitRulesParam(unitID, "ballShow", 0, INLOS) -- hide halo
3534
end
3635
else
3736
if ballSize == 1 then
3837
Show(energyball)
39-
spSetUnitRulesParam(unitID, "ballShow", 1, INLOS) -- show halo
4038
end
4139
if ballSize < 100 then
4240
ballSize = ballSize + 1
@@ -89,7 +87,6 @@ end
8987

9088
function script.Create()
9189
Hide(energyball)
92-
spSetUnitRulesParam(unitID, "ballShow", 0, INLOS) -- hide halo
9390
spSetUnitRulesParam(unitID, "ballSwell", 0, INLOS) -- halo size
9491

9592
StartThread(GG.Script.SmokeUnit, unitID, smokePiece)

0 commit comments

Comments
 (0)