Skip to content

Commit

Permalink
kinda forgot to do this actually
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitawastaken committed Feb 10, 2024
1 parent 46bdf06 commit 32ede5e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lua/playerdamage.lua
Original file line number Diff line number Diff line change
Expand Up @@ -360,10 +360,14 @@ function PlayerDamage:_calc_health_damage(attack_data)
end

function PlayerDamage:on_incapacitated()
local is_pro = Global.game_settings and Global.game_settings.one_down

self:on_downed()

self._revives = Application:digest_value(Application:digest_value(self._revives, false) - 1, true) -- instant incaps (cloakers / tasers) count as downs
self:_send_set_revives()
if is_pro then
self._revives = Application:digest_value(Application:digest_value(self._revives, false) - 1, true) -- instant incaps (cloakers / tasers) count as downs
self:_send_set_revives()
end

self._incapacitated = true
end
Expand Down

0 comments on commit 32ede5e

Please sign in to comment.