isaacscript-common 1.0.481 → 1.0.482
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -21,7 +21,7 @@ function entityTakeDmgPlayer(self, tookDamage, damageAmount, _damageFlags, _dama
|
|
|
21
21
|
if willPlayerRevive(nil, player) then
|
|
22
22
|
return nil
|
|
23
23
|
end
|
|
24
|
-
if (not
|
|
24
|
+
if (not damageIsFatal(nil, player, damageAmount)) and (not hasLostCurse(nil, player)) then
|
|
25
25
|
return nil
|
|
26
26
|
end
|
|
27
27
|
local shouldSustainDeath = postPlayerFatalDamage:fire(player)
|
|
@@ -31,6 +31,10 @@ function entityTakeDmgPlayer(self, tookDamage, damageAmount, _damageFlags, _dama
|
|
|
31
31
|
return nil
|
|
32
32
|
end
|
|
33
33
|
function damageIsFatal(self, player, damageAmount)
|
|
34
|
+
local character = player:GetPlayerType()
|
|
35
|
+
if character == PlayerType.PLAYER_JACOB2_B then
|
|
36
|
+
return true
|
|
37
|
+
end
|
|
34
38
|
local playerNumAllHearts = getPlayerNumAllHearts(nil, player)
|
|
35
39
|
if damageAmount < playerNumAllHearts then
|
|
36
40
|
return false
|