Re: Multiple Attacks

From: Rasdan (rasdan@PEAK.ORG)
Date: 03/20/98


> The problem is, the mob is _not_ dead.  If he dies, everything goes fine.
> It's only when his position is changed to either POS_MORTALLYW, POS_INCAP,
> or POS_STUNNED.  I changed the fight call to check for it thus:
>
>         for (i=0; i<GET_ATTACKS(ch); i++) {
-> NOTICE THE CHANGE
            if (FIGHTING(ch) && GET_POS(FIGHTING(ch)) > POS_DEAD)
>               hit(ch, FIGHTING(ch), TYPE_UNDEFINED);
>            else
>               send_to_char("The damn thing's dead already!\r\n", ch);
>         }

You need to have checks to see if the character is still fighting or not.

Rasdan
                                  /   \
        _                 )      ((   ))     (
       (@)               /|\      ))_((     /|\                 _
       |-|`\            / | \    (/\|/\)   / | \               (@)
       | | ------------/--|-voV---\`|'/--Vov-|--\--------------|-|
       |-|                  '^`   (o o)  '^`                   | |
       | |  James C. Thomas Jr.   `\Y/'  Founder of Finality   |-|
       |-|            rasdan@finality.drachen.com              | |
       | |             finality.drachen.com 4000               |-|
       |_|_____________________________________________________| |
       (@)       l   /\ /         ( (       \ /\   l         `\|-|
                 l /   V           \ \       V   \ l           (@)
                 l/                _) )_          \I
                                   `\ /'
                                     `


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST