mirror of
https://github.com/tbamud/tbamud.git
synced 2026-01-25 10:26:09 +01:00
Do_flee fix. 128 bit updates. --Rumble
This commit is contained in:
parent
d7332e9640
commit
511a0a3da3
6 changed files with 47 additions and 29 deletions
|
|
@ -269,7 +269,9 @@ ACMD(do_flee)
|
|||
was_fighting = FIGHTING(ch);
|
||||
if (do_simple_move(ch, attempt, TRUE)) {
|
||||
send_to_char(ch, "You flee head over heels.\r\n");
|
||||
if (was_fighting && !IS_NPC(ch)) {
|
||||
stop_fighting(ch);
|
||||
stop_fighting(was_fighting);
|
||||
if (was_fighting && !IS_NPC(ch)) {
|
||||
loss = GET_MAX_HIT(was_fighting) - GET_HIT(was_fighting);
|
||||
loss *= GET_LEVEL(was_fighting);
|
||||
gain_exp(ch, -loss);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue