Skip to content

Commit

Permalink
Change how Trump's Fists checks for passive regen and remove proc fro…
Browse files Browse the repository at this point in the history
…m illusions (#745)

* Change how Trump's Fists checks for passive regen

* Make Trump's Fists not apply from illusions
  • Loading branch information
Trildar authored and chrisinajar committed May 7, 2017
1 parent 67b8bd9 commit ef1237a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions game/scripts/vscripts/items/trumps_fists.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ end

function modifier_item_trumps_fists_passive:OnAttackLanded( kv )
if IsServer() then
if kv.attacker == self:GetParent() then
if kv.attacker == self:GetParent() and not kv.attacker:IsIllusion() then
kv.target:AddNewModifier( self:GetCaster(), self:GetAbility(), "modifier_item_trumps_fists_frostbite", { duration = self.heal_prevent_duration } )
end
end
Expand Down Expand Up @@ -126,7 +126,7 @@ function modifier_item_trumps_fists_frostbite:OnHealthGained( kv )
if IsServer() then
-- Check that event is being called for the unit that self is attached to
-- and that the healing is not passive regen
if kv.unit == self:GetParent() and kv.damage_type ~= 0 then
if kv.unit == self:GetParent() and not kv.process_procs then
local desiredHP = kv.unit:GetHealth() + kv.gain * self.heal_prevent_percent / 100
desiredHP = math.max(desiredHP, 1)

Expand Down

0 comments on commit ef1237a

Please sign in to comment.