On Mon, 2 Dec 1996, Brian Williams - Nashak wrote:
> The tank is also determined by the first person to follow the leader into
> the room if it is an aggro mob...
> >
> > How the tank is determined in a group when a mob decides to attack a group,
> > well .. I'm not sure .. Jeremy, Chris or Daniel? Any suggestions?
Okay, since the tank is whom you are fighting but whom isn't fighting you,
wouldn't this do:
struct char_data *tank = FIGHTING(FIGHTING(ch));
if (!tank) {
// no tank?! eh, weird.
} else if (tank == ch) {
// player is tanking
} else {
// someone else is tanking
}
Hm, I think, anyway. :)
--
Daniel Koepke
dkoepke@california.com
Forgive me father, for I am sin.
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://cspo.queensu.ca/~fletcher/Circle/list_faq.html |
+-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST