fix checking Tainted characters

This commit is contained in:
Buurazu authored and GitHub committed 2024-06-10 03:14:00 -04:00
1 parent 991bacb0d2
commit de88a66d11
1 file changed
+1 -1
+1 -1
View File
@@ -1193,7 +1193,7 @@ function EID:PlayersHaveCharacter(playerType, includeTainted)
if player:GetPlayerType() == playerType then
return true, player
end
if includeTainted and EID.isRepentance and Isaac.GetPlayerTypeByName(player:GetName()) == playerType then
if includeTainted and EID.isRepentance and EID.TaintedToRegularID[player:GetPlayerType()] == playerType then
return true, player
end
end