Haven't ran the code, but saw this one:

On Sat, Jan 05, 2002 at 12:53:52AM -0600, Mark Roberts wrote:
> #define IS_CASTING(ch)   (IS_SET((ch)->act, PLR_CASTING))

>     if (!IS_NPC (ch) && ch->mana < mana)
>     {
>         send_to_char ("You don't have enough mana.\n\r", ch);
>         return;
>     }
> 
> +    if (!IS_CASTING(ch))
> +    {
> +       SET_BIT(ch->act, PLR_CASTING);
> +       WAIT_STATE (ch, skill_table[sn].beats);
> +       return;
> +    }

This should also check for !IS_NPC(ch)

Edwin

-- 
Edwin Groothuis   |              Personal website: http://www.MavEtJu.org
[EMAIL PROTECTED] |           Interested in MUDs? Visit Fatal Dimensions:
------------------+                       http://www.FatalDimensions.org/

Reply via email to