Fixes Pill descriptions not being correct when having PHD

This commit is contained in:
Wofsauge committed 2021-05-15 15:34:35 +02:00
1 parent 43b141df4e
commit b67c7fced1
1 file changed
+1 -1
+1 -1
View File
@@ -296,7 +296,7 @@ function EID:getDescriptionObj(Type, Variant, SubType)
local tableName = EID:getTableName(Type, Variant, SubType)
if tableName == "pills" or tableName == "horsepills" then
local pool = Game():GetItemPool()
description.ID = pool:GetPillEffect(SubType) + 1
description.ID = pool:GetPillEffect(SubType, Isaac.GetPlayer(0)) + 1
end
description.fullItemString = Type.."."..Variant.."."..description.ID
description.Name = EID:getObjectName(Type, Variant, description.ID)