>>The problem is when the first hit kills the mob, the second one tries to
>>hit something that isnt there and crashes the mud. I tried everything I
>The solution to this, that i did, is to have damage/hit/etc return a
>boolean, "false" if the target is still alive and "true" if it is dead.
Lets just say that your double hit skill is defined as SKILL_DOUBLE_HIT
Add an if statement like:
if(SKILL_DOUBLE_HIT(ch) > 0 && POS_FIGHTING(ch))
hit(blah blah);
If the character isn't positioned as fighting, he wont try the second hit.
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-++-+-+-+-+-+-+-+
| Chuck Reed | Ash of Dark Horizon |
| creed@i-55.com | dh.gator.net 6000 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-++-+-+-+-+-+-+-+
"Losers always whine about their best while the winner goes
home and fucks the prom queen." -Sean Connery
+------------------------------------------------------------+
| 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/08/00 PST