Pills used via Temperance? card now count towards being used
This commit is contained in:
1 parent
12c40d2193
commit
0f7a7f8737
1 file changed
+2
-3
@@ -1707,9 +1707,8 @@ function EID:OnUsePill(pillEffectID, player, useFlags)
|
|||||||
if EID.isRepentance and useFlags ~= UseFlag.USE_NOANNOUNCER then EID:TrackWildCardEffects("5.70." .. (pillEffectID+1), player, pillColor) end
|
if EID.isRepentance and useFlags ~= UseFlag.USE_NOANNOUNCER then EID:TrackWildCardEffects("5.70." .. (pillEffectID+1), player, pillColor) end
|
||||||
EID.ForceRefreshCache = true -- for transformation progress update
|
EID.ForceRefreshCache = true -- for transformation progress update
|
||||||
|
|
||||||
-- for tracking used pills, ignore gold pills and noannouncer flag pills (Temperance?)
|
-- for tracking used pills, ignore gold pills and no animation pills, since those dont show what pull you used
|
||||||
-- (not using a bitmask, because Placebo is mimic+noannouncer, and we want to count those)
|
if EID.isRepentance and (pillColor % PillColor.PILL_GIANT_FLAG == PillColor.PILL_GOLD or useFlags & UseFlag.USE_NOANIM == UseFlag.USE_NOANIM) then return end
|
||||||
if EID.isRepentance and (pillColor % PillColor.PILL_GIANT_FLAG == PillColor.PILL_GOLD or useFlags == UseFlag.USE_NOANNOUNCER) then return end
|
|
||||||
EID.UsedPillColors[tostring(pillColor)] = true
|
EID.UsedPillColors[tostring(pillColor)] = true
|
||||||
end
|
end
|
||||||
EID:AddCallback(ModCallbacks.MC_USE_PILL, EID.OnUsePill)
|
EID:AddCallback(ModCallbacks.MC_USE_PILL, EID.OnUsePill)
|
||||||
|
|||||||
Reference in new issue
Block a user