fix on-spawn pill eating error
This commit is contained in:
1 parent
b7b5da2e6a
commit
2ff9d3d883
1 file changed
+1
-1
@@ -1722,7 +1722,7 @@ end
|
||||
function EID:OnUsePill(pillEffectID, player, useFlags)
|
||||
player = player or EID.player --AB+ doesn't receive player in callback arguments!
|
||||
-- get the pill color by checking the player's pocket
|
||||
local pillColor = EID.PlayerHeldPill[EID:getPlayerID(player)]
|
||||
local pillColor = EID.PlayerHeldPill[EID:getPlayerID(player)] or 1
|
||||
-- add the pill used to our history for Echo Chamber / Vurp! / transformation progress
|
||||
EID:AddPickupToHistory("pill", pillEffectID+1, player, useFlags, pillColor)
|
||||
-- add the pill to Wild Card tracking, unless it's a Temperance? pill
|
||||
|
||||
Reference in new issue
Block a user