mirror of
https://github.com/tbamud/tbamud.git
synced 2026-03-11 15:22:34 +01:00
Changed mob flag NOBASH to NOKILL --Rumble
This commit is contained in:
parent
73ecd212a0
commit
1779f7a30a
7 changed files with 40 additions and 32 deletions
|
|
@ -294,12 +294,13 @@ ACMD(do_bash)
|
|||
send_to_char(ch, "Aren't we funny today...\r\n");
|
||||
return;
|
||||
}
|
||||
if (MOB_FLAGGED(vict, MOB_NOKILL)) {
|
||||
send_to_char(ch, "This mob is protected.\r\n");
|
||||
return;
|
||||
}
|
||||
percent = rand_number(1, 101); /* 101% is a complete failure */
|
||||
prob = GET_SKILL(ch, SKILL_BASH);
|
||||
|
||||
if (MOB_FLAGGED(vict, MOB_NOBASH))
|
||||
percent = 101;
|
||||
|
||||
if (percent > prob) {
|
||||
damage(ch, vict, 0, SKILL_BASH);
|
||||
GET_POS(ch) = POS_SITTING;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue