diff --git a/src/p_actionfunctions.cpp b/src/p_actionfunctions.cpp index 51c37f23d..a62ce0210 100644 --- a/src/p_actionfunctions.cpp +++ b/src/p_actionfunctions.cpp @@ -5904,9 +5904,9 @@ static void DoKill(AActor *killtarget, AActor *inflictor, AActor *source, FName { int dmgFlags = DMG_NO_ARMOR | DMG_NO_FACTOR; - if (KILS_FOILINVUL) + if (flags & KILS_FOILINVUL) dmgFlags |= DMG_FOILINVUL; - if (KILS_FOILBUDDHA) + if (flags & KILS_FOILBUDDHA) dmgFlags |= DMG_FOILBUDDHA; if ((killtarget->flags & MF_MISSILE) && (flags & KILS_KILLMISSILES))