From ad0ad90b9f532f8a48dff27fb5efd901530d9fe1 Mon Sep 17 00:00:00 2001 From: Buurazu Date: Mon, 5 Sep 2022 04:45:03 -0400 Subject: [PATCH] fix Vurp --- eid_modifiers.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/eid_modifiers.lua b/eid_modifiers.lua index 269db8fc..86fe6c37 100644 --- a/eid_modifiers.lua +++ b/eid_modifiers.lua @@ -467,15 +467,19 @@ if REPENTANCE then local adjustedID = EID:getAdjustedSubtype(descObj.ObjType, descObj.ObjVariant, descObj.ObjSubType) if adjustedID - 1 ~= PillEffect.PILLEFFECT_VURP then return descObj end - local playerID = EID.player:GetPlayerType() + local playerID = EID:getPlayerID(EID.player) local pickupHistory = EID.PlayerItemInteractions[playerID].pickupHistory + -- Dead Tainted Lazarus exception + if EID.player:GetPlayerType() == 38 then + pickupHistory = EID.PlayerItemInteractions[playerID].altPickupHistory or pickupHistory + end if pickupHistory then local lastUsedPill = nil local i = 1 while (i <= #pickupHistory) do local entry = pickupHistory[i] - if entry[1] == "pill" and entry[2] == playerID and entry[3] ~= PillEffect.PILLEFFECT_VURP + 1 then + if entry[1] == "pill" then lastUsedPill = entry[3] break end