Returns 1 if @target mobile is resistant to the given @type; otherwise returns 0. See the description for %isImmune() for the list of types.