isaacscript-common 1.0.533 → 1.0.534

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.
@@ -37,9 +37,12 @@ function queueEmpty(self, player, pickingUpItem)
37
37
  end
38
38
  function queueNotEmpty(self, player, pickingUpItem)
39
39
  local queuedItem = player.QueuedItem.Item
40
- if (queuedItem ~= nil) and (queuedItem.ID ~= pickingUpItem.id) then
41
- pickingUpItem.id = queuedItem.ID
40
+ if queuedItem == nil then
41
+ return
42
+ end
43
+ if (queuedItem.Type ~= pickingUpItem.type) or (queuedItem.ID ~= pickingUpItem.id) then
42
44
  pickingUpItem.type = queuedItem.Type
45
+ pickingUpItem.id = queuedItem.ID
43
46
  preItemPickupFire(nil, player, pickingUpItem)
44
47
  end
45
48
  end
@@ -21,6 +21,9 @@ function entityTakeDmgPlayer(self, tookDamage, damageAmount, _damageFlags, _dama
21
21
  if player == nil then
22
22
  return nil
23
23
  end
24
+ if player.Variant ~= 0 then
25
+ return nil
26
+ end
24
27
  if willPlayerRevive(nil, player) then
25
28
  return nil
26
29
  end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "1.0.533",
3
+ "version": "1.0.534",
4
4
  "description": "Helper functions for IsaacScript mods",
5
5
  "keywords": [
6
6
  "isaac",
@@ -25,7 +25,7 @@
25
25
  "dist/**/*.d.ts"
26
26
  ],
27
27
  "devDependencies": {
28
- "isaac-typescript-definitions": "^1.0.298",
28
+ "isaac-typescript-definitions": "^1.0.300",
29
29
  "isaacscript-lint": "^1.0.72",
30
30
  "typedoc": "^0.22.10",
31
31
  "typescript": "4.4.4",