Well, I found a major bug. The one-headed zmey(monster id 2960) has #secondshape 2960 so it's practically unkillable. So does 2961 and 2962, both of them will turn to 2960 when get killed and respawn themsleves again and again.
btw, It seems the spell list in start of .dm file is out of date...