Can keep killing dead enemies and they scream and give you experience

Noticed a bug that I’m sure we’ll pick up later, but I can use my ability to repeatedly kill dead enemies and earn infinite amounts of experience. They also scream.

I fixed this by have a setdead function for restoring state and changing the die function to handle the event and scream and add experience.

This is actually easily fixed in one line of code at the beginning of TakeDamage.cs (no state required)

if (currentHealth.value<=0) return;

Then regardless of the source of the damage, if the character is already dead, nothing will happen.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms