I think this is because of the changes to prevent Necromancer from generating corpses outside of combat.
The ability only generates a corpse if at least one enemy is hit by the final patch, that implies if an enemy is hit you are in combat, so it is always true that this ability will only generate a corpse in combat. So you would just do something like this in the code:
generateCorpse = false
If (player.status == IN_COMBAT || sourceAbility.name == GHOSTLY_EMBRACE)
generateCorpse = true
If (generateCorpse)
spawnCorpse()