Fixed Magdalenes pill not being identified when "show used pills" option is active

closes #734
This commit is contained in:
Wofsauge committed 2024-11-17 17:25:05 +01:00
1 parent fae2b8f671
commit 12c40d2193
1 file changed
+4
+4
View File
@@ -2015,6 +2015,10 @@ function EID:evaluateHeldPill()
for i = 0, game:GetNumPlayers() - 1 do
local player = Isaac.GetPlayer(i)
EID.PlayerHeldPill[i] = player:GetPill(0)
-- Magdalene starts with an identified pill. We need to account for that
if player:GetPlayerType() == PlayerType.PLAYER_MAGDALENE and player.FrameCount <= 1 then
EID.UsedPillColors[tostring(EID.PlayerHeldPill[i])] = true
end
end
end