At first, I forgot to put the attack code in a while true loop and realized that my hero wasn’t attacking anyone, but the ogres still all died and I completed the level. I completely removed all the code and it still passed. What would cause the ogres to lose health without being attacked?
Are you wearing the thorns ring? That would reflect damage back to them, causing them to die by themselves.