Don't crash when casting IOOD at an adjacent foe.

If the IOOD exploded as part of its first move, our attempts to
make the dead monster lose extra energy caused a crash.

Also remove a check that papered over the bug by making the energy
loss "work", changing it to an assert instead.
Unbrace.