isaacscript-common 1.2.50 → 1.2.51

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.
@@ -34,8 +34,8 @@ function setDamageFrame(self, tookDamage, damageFlags)
34
34
  local playerIndex = getPlayerIndex(nil, player)
35
35
  local trackingArray = v.run.damageFrameMap:get(playerIndex)
36
36
  if trackingArray ~= nil then
37
- local lastDamageFrame, callbackActivatedOnThisFrame = table.unpack(trackingArray)
38
- if lastDamageFrame == gameFrameCount and callbackActivatedOnThisFrame then
37
+ local lastDamageFrame, callbackFiredOnThisFrame = table.unpack(trackingArray)
38
+ if lastDamageFrame == gameFrameCount and callbackFiredOnThisFrame then
39
39
  return
40
40
  end
41
41
  end
@@ -29,6 +29,7 @@ function postPEffectUpdateReordered(self, player)
29
29
  local playerHealthMap = v.run.playersHealthMap:get(playerIndex)
30
30
  if playerHealthMap == nil then
31
31
  playerHealthMap = __TS__New(Map)
32
+ v.run.playersHealthMap:set(playerIndex, playerHealthMap)
32
33
  end
33
34
  local healthTypes = getEnumValues(nil, HealthType)
34
35
  for ____, healthType in ipairs(healthTypes) do
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "1.2.50",
3
+ "version": "1.2.51",
4
4
  "description": "Helper functions for IsaacScript mods",
5
5
  "keywords": [
6
6
  "isaac",