isaacscript-common 1.0.534 → 1.0.535
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.
|
@@ -5,6 +5,7 @@ local ____player = require("functions.player")
|
|
|
5
5
|
local getPlayerAvailableHeartSlots = ____player.getPlayerAvailableHeartSlots
|
|
6
6
|
local getPlayerNumAllHearts = ____player.getPlayerNumAllHearts
|
|
7
7
|
local hasLostCurse = ____player.hasLostCurse
|
|
8
|
+
local isChildPlayer = ____player.isChildPlayer
|
|
8
9
|
local ____revive = require("functions.revive")
|
|
9
10
|
local willPlayerRevive = ____revive.willPlayerRevive
|
|
10
11
|
local ____postPlayerFatalDamage = require("callbacks.subscriptions.postPlayerFatalDamage")
|
|
@@ -24,6 +25,9 @@ function entityTakeDmgPlayer(self, tookDamage, damageAmount, _damageFlags, _dama
|
|
|
24
25
|
if player.Variant ~= 0 then
|
|
25
26
|
return nil
|
|
26
27
|
end
|
|
28
|
+
if isChildPlayer(nil, player) then
|
|
29
|
+
return nil
|
|
30
|
+
end
|
|
27
31
|
if willPlayerRevive(nil, player) then
|
|
28
32
|
return nil
|
|
29
33
|
end
|