diff --git a/game/scripts/vscripts/heroes/hero_phoenix/sun_ray.lua b/game/scripts/vscripts/heroes/hero_phoenix/sun_ray.lua index f19403f3..2ec9ec3d 100644 --- a/game/scripts/vscripts/heroes/hero_phoenix/sun_ray.lua +++ b/game/scripts/vscripts/heroes/hero_phoenix/sun_ray.lua @@ -41,7 +41,7 @@ function CastSunRay( event ) -- Create particle FX local particleName = "particles/units/heroes/hero_phoenix/phoenix_sunray.vpcf" - pfx = ParticleManager:CreateParticle( particleName, PATTACH_ABSORIGIN_FOLLOW, caster ) + local pfx = ParticleManager:CreateParticle( particleName, PATTACH_ABSORIGIN_FOLLOW, caster ) ParticleManager:SetParticleControlEnt( pfx, 0, caster, PATTACH_POINT_FOLLOW, "attach_hitloc", caster:GetAbsOrigin(), true ) -- Attach a loop sound to the endcap @@ -329,4 +329,4 @@ end ]] function StopSound( event ) StopSoundEvent( event.sound_name, event.caster ) -end \ No newline at end of file +end