Iwe made this, ideas to improve would be nice.
It kinds works, but it also stops when the vict is still attacking, i would like it to come with a message saying It would not be good to let your guard down while fighting. And then let the fight go on.
It should only be possible to stop fighting, when the vict is one of the following states:
#define POS_DEAD 0
#define POS_MORTALLYW 1 <<
#define POS_INCAP 2 <<
#define POS_STUNNED 3 <<
Code:
ACMD(do_disengage)
{
struct char_data *vict;
if (GET_POS(ch) < POS_FIGHTING) {
send_to_char(ch, "You are in pretty bad shape, unable to disengage!\r\n");
return;
}
if (!FIGHTING(ch)) {
send_to_char(ch, "How can you disengage from combat, when you are not fighting anyone?\r\n");
return;
}
if (FIGHTING(ch)) {
stop_fighting(ch);
send_to_char(ch, "You disengage from combat, letting your guard down.\r\n");
}
}