Immune

      immune - syntax: immune(CH,"damage type") 

Returns true if CH is immune to the given damage type.

   --- switch weapons if target immune.
   if immune(ch,"fire")) then
      mdo("wield ice blade")
   end