Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ function modifier_bristleback_quill_spray_lua:OnCreated( kv )

-- set stack
self:SetStackCount( 1 )

-- play effects
self:PlayEffects()
end
end

Expand All @@ -58,6 +61,9 @@ function modifier_bristleback_quill_spray_lua:OnRefresh( kv )

-- increment stack
self:IncrementStackCount()

-- play effects
self:PlayEffects()
end
end

Expand All @@ -75,10 +81,12 @@ end

--------------------------------------------------------------------------------
-- Graphics & Animations
function modifier_bristleback_quill_spray_lua:GetEffectName()
return "particles/units/heroes/hero_bristleback/bristleback_quill_spray_hit_creep.vpcf"
end
function modifier_bristleback_quill_spray_lua:PlayEffects()
local particle_cast = "particles/units/heroes/hero_bristleback/bristleback_quill_spray_hit_creep.vpcf"

-- Create Particle
local effect_cast = ParticleManager:CreateParticle(particle_cast, PATTACH_ABSORIGIN_FOLLOW, self:GetParent())

function modifier_bristleback_quill_spray_lua:GetEffectAttachType()
return PATTACH_ABSORIGIN_FOLLOW
ParticleManager:SetParticleControlEnt(effect_cast, 1, self:GetParent(), PATTACH_ABSORIGIN_FOLLOW, "attach_hitloc", self:GetParent():GetAbsOrigin(), true)
self:AddParticle(effect_cast, false, false, -1, false, false)
end
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ function modifier_storm_spirit_ball_lightning_lua:UpdateHorizontalMotion( me, dt
end

-- spend mana
me:SpendMana( manacost, hAbility )
me:SpendMana( manacost, self:GetAbility() )
end

function modifier_storm_spirit_ball_lightning_lua:OnHorizontalMotionInterrupted()
Expand Down