From 09c80f9d97a9c58cc92b14e36760d35108ac4629 Mon Sep 17 00:00:00 2001 From: Wofsauge Date: Wed, 17 Jul 2024 19:34:25 +0200 Subject: [PATCH] Fixed "The Stars?" modifier not working correctly for jacob & Esau --- features/eid_api.lua | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/features/eid_api.lua b/features/eid_api.lua index c0836561..f9c7bbe4 100644 --- a/features/eid_api.lua +++ b/features/eid_api.lua @@ -1762,14 +1762,16 @@ function EID:getPlayerID(entityPlayer, lazarusAdjust) if GetPtrHash(player) == GetPtrHash(entityPlayer) then -- Dead Tainted Lazarus exceptions if lazarusAdjust and EID.isRepentance then - -- Check for Birthright to make the ghostly form use the same base ID as the main form - if player:GetMainTwin() then - if GetPtrHash(player:GetMainTwin()) ~= GetPtrHash(player) then - i = EID:getPlayerID(player:GetMainTwin()) + if player:GetPlayerType() == 38 then + -- Check for Birthright to make the ghostly form use the same base ID as the main form + if player:GetMainTwin() then + if GetPtrHash(player:GetMainTwin()) ~= GetPtrHash(player) then + i = EID:getPlayerID(player:GetMainTwin()) + end end + -- Increase the ID by 666 if Dead Tainted Lazarus + i = i + 666 end - -- Increase the ID by 666 if Dead Tainted Lazarus - if player:GetPlayerType() == 38 then i = i + 666 end end return i end