'Someone landed a hit on us. Check our status
and start attacking if not already doing so.'

def at_hit(self, weapon, attacker, damage):

    if (self.db.health is None):
        attacker.msg(self.db.weapon_ineffective_msg)
        return
    if (not self.ndb.is_immortal):
        if (not weapon.db.magic):
            damage /= self.db.damage_resistance
            attacker.msg(self.db.weapon_ineffective_msg)
        else:
            self.location.msg_contents(self.db.hit_msg)
        self.db.health -= damage
    if (self.db.health <= 0):
        attacker.msg(self.db.death_msg)
        self.set_dead()
    elif (self.db.aggressive and (not self.ndb.is_attacking)):
        self.start_attacking()
