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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "1.0.534",
3
+ "version": "1.0.535",
4
4
  "description": "Helper functions for IsaacScript mods",
5
5
  "keywords": [
6
6
  "isaac",