Changed mob flag NOBASH to NOKILL --Rumble

This commit is contained in:
Rumble
2009-12-25 00:31:33 +00:00
parent 73ecd212a0
commit 1779f7a30a
7 changed files with 40 additions and 32 deletions

View File

@@ -682,8 +682,9 @@ int damage(struct char_data *ch, struct char_data *victim, int dam, int attackty
return (0);
}
/* shopkeeper protection */
if (!ok_damage_shopkeeper(ch, victim))
/* shopkeeper and MOB_NOKILL protection */
if (!ok_damage_shopkeeper(ch, victim) || MOB_FLAGGED(victim, MOB_NOKILL))
send_to_char(ch, "This mob is protected.\r\n");
return (0);
/* You can't damage an immortal! */