new unfollow command available for all players (#6)

* new unfollow command available for all players

* new unfollow command available for all players (fix redundant check)

* new unfollow command available for all players (fix redundant check)
This commit is contained in:
gbrunett
2017-10-20 21:32:58 -04:00
committed by wyld-sw
parent 324cfdd415
commit 75d8b58029
4 changed files with 31 additions and 0 deletions

View File

@@ -970,3 +970,18 @@ ACMD(do_follow)
}
}
}
ACMD(do_unfollow)
{
if (ch->master) {
if (AFF_FLAGGED(ch, AFF_CHARM)) {
send_to_char(ch, "You feel compelled to follow %s.\r\n",
GET_NAME(ch->master));
} else {
stop_follower(ch);
}
} else {
send_to_char(ch, "You are not following anyone.\r\n");
}
return;
}