[BUG] Necromancer Ghostly Embrace Doesn't Generate Corpse On Final Hit If Used To Start Combat

randconfig
randconfig
✭✭✭✭✭
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()
Sign In or Register to comment.