- New hurt system
This commit is contained in:
@@ -42,8 +42,7 @@ function fireball:update()
|
||||
if fireball.hab==abad.hab then
|
||||
if aabb(fireball,abad) and abad.update~=abad_state_crouch then
|
||||
fireball.hab=-1
|
||||
if abad.energia>0 then abad.energia=abad.energia-1 end
|
||||
cls(3)
|
||||
abad_hurt(1)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user