isaacscript-common 1.0.475 → 1.0.476

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.
@@ -39,15 +39,23 @@ function postPlayerUpdateReordered(self, player)
39
39
  if v.run.dyingPlayerIndex == nil then
40
40
  return
41
41
  end
42
+ local character = player:GetPlayerType()
42
43
  local playerIndex = getPlayerIndex(nil, player)
43
44
  if playerIndex ~= v.run.dyingPlayerIndex then
44
45
  return
45
46
  end
46
- if not player:IsHoldingItem() then
47
+ local playerToCheckHoldingItem = player
48
+ if character == PlayerType.PLAYER_THESOUL_B then
49
+ local forgottenBody = player:GetOtherTwin()
50
+ if forgottenBody ~= nil then
51
+ playerToCheckHoldingItem = forgottenBody
52
+ end
53
+ end
54
+ if not playerToCheckHoldingItem:IsHoldingItem() then
47
55
  return
48
56
  end
49
57
  if v.run.revivalType ~= nil then
50
- postCustomRevive:fire(player, v.run.revivalType)
58
+ postCustomRevive:fire(playerToCheckHoldingItem, v.run.revivalType)
51
59
  end
52
60
  v.run.state = CustomReviveState.DISABLED
53
61
  v.run.revivalType = nil
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "1.0.475",
3
+ "version": "1.0.476",
4
4
  "description": "Helper functions for IsaacScript mods",
5
5
  "keywords": [
6
6
  "isaac",