Don't pickup emeralds if in pain state

This commit is contained in:
James R 2023-06-30 19:38:06 -07:00 committed by VelocitOni
parent 82cf995e35
commit 4874c90f8d

View file

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