Don't pickup emeralds if in pain state

This commit is contained in:
James R 2023-06-30 19:38:06 -07:00
parent 99091036fb
commit 96eb60ee63

View file

@ -453,7 +453,7 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
return;
}
case MT_EMERALD:
if (!P_CanPickupItem(player, 0))
if (!P_CanPickupItem(player, 0) || P_PlayerInPain(player))
return;
if (special->threshold > 0)