This reverts commit 49f4e6fd47
.
This commit is contained in:
parent
8315d0074a
commit
510ca896cd
6 changed files with 23 additions and 92 deletions
|
@ -16,10 +16,8 @@ local function regen_all()
|
|||
local newhp = oldhp + hpregen.amount
|
||||
if newhp > player:get_properties().hp_max then
|
||||
newhp = player:get_properties().hp_max
|
||||
ctf.clear_assists(player:get_player_name())
|
||||
end
|
||||
if oldhp ~= newhp then
|
||||
ctf.add_heal_assist(player:get_player_name(), hpregen.amount)
|
||||
player:set_hp(newhp)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue